fix(ios): memory leak after using the 'presentViewControllerNavigation' (#9934)

This commit is contained in:
Douglas Machado
2022-06-16 17:30:28 -03:00
committed by Nathan Walker
parent 18f4bdde4c
commit 957af32859
2 changed files with 3 additions and 0 deletions

View File

@ -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. // Take a look at https://github.com/NativeScript/NativeScript/issues/2173 for more info and a sample project.
this._raiseShownModallyEvent(); this._raiseShownModallyEvent();
} }
controller = null;
} }
protected _hideNativeModalView(parent: View, whenClosedCallback: () => void) { protected _hideNativeModalView(parent: View, whenClosedCallback: () => void) {

View File

@ -42,6 +42,8 @@ export class Frame extends FrameBase {
this._removeFromFrameStack(); this._removeFromFrameStack();
this.viewController = null; this.viewController = null;
this._ios.controller = null; this._ios.controller = null;
this._animatedDelegate = null;
this._ios = null;
super.disposeNativeView(); super.disposeNativeView();
} }