Skip to content

Commit 4db4e4a

Browse files
Douglas MachadoNathanWalker
authored andcommitted
fix(ios): memory leak after using 'showModal' passing any Page as parameter (#9939)
1 parent fc77c92 commit 4db4e4a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/core/ui/page/index.ios.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,12 @@ export class Page extends PageBase {
365365
return this.viewController.view;
366366
}
367367

368+
disposeNativeView() {
369+
this.viewController = null;
370+
this._ios = null;
371+
super.disposeNativeView();
372+
}
373+
368374
// @ts-ignore
369375
get ios(): UIViewController {
370376
return this._ios;

0 commit comments

Comments
 (0)