mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
fix(ios): memory leak after using the 'presentViewControllerNavigation' (#9934)
This commit is contained in:

committed by
Nathan Walker

parent
18f4bdde4c
commit
957af32859
@ -543,6 +543,7 @@ export class View extends ViewCommon implements ViewDefinition {
|
||||
// Take a look at https://github.com/NativeScript/NativeScript/issues/2173 for more info and a sample project.
|
||||
this._raiseShownModallyEvent();
|
||||
}
|
||||
controller = null;
|
||||
}
|
||||
|
||||
protected _hideNativeModalView(parent: View, whenClosedCallback: () => void) {
|
||||
|
@ -42,6 +42,8 @@ export class Frame extends FrameBase {
|
||||
this._removeFromFrameStack();
|
||||
this.viewController = null;
|
||||
this._ios.controller = null;
|
||||
this._animatedDelegate = null;
|
||||
this._ios = null;
|
||||
super.disposeNativeView();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user