mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
fix(ios): memory leak after using 'showModal' passing any Page as parameter (#9939)
This commit is contained in:

committed by
Nathan Walker

parent
fc77c92e11
commit
4db4e4af27
@ -365,6 +365,12 @@ export class Page extends PageBase {
|
|||||||
return this.viewController.view;
|
return this.viewController.view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disposeNativeView() {
|
||||||
|
this.viewController = null;
|
||||||
|
this._ios = null;
|
||||||
|
super.disposeNativeView();
|
||||||
|
}
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
get ios(): UIViewController {
|
get ios(): UIViewController {
|
||||||
return this._ios;
|
return this._ios;
|
||||||
|
Reference in New Issue
Block a user