From e1027831bdd18c83cf4ef4f53f7cd7d416ef73dd Mon Sep 17 00:00:00 2001 From: Nikolai Orekhov Date: Wed, 16 Nov 2022 13:22:38 +0200 Subject: [PATCH] fix component destroy leak --- src/component-loader/component-loader.class.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component-loader/component-loader.class.ts b/src/component-loader/component-loader.class.ts index 521683d5f0..cc4aa4a670 100644 --- a/src/component-loader/component-loader.class.ts +++ b/src/component-loader/component-loader.class.ts @@ -228,6 +228,7 @@ export class ComponentLoader { this._contentRef?.viewRef?.destroy(); this._contentRef = void 0; + this._componentRef.destroy(); this._componentRef = void 0; this._removeGlobalListener();