Skip to content

Commit edc2e6a

Browse files
authored
fix(ios): memory leak after using the 'presentViewControllerNavigation' (#9934)
1 parent 7bc11a7 commit edc2e6a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/core/ui/core/view/index.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ export class View extends ViewCommon implements ViewDefinition {
543543
// Take a look at https://github.com/NativeScript/NativeScript/issues/2173 for more info and a sample project.
544544
this._raiseShownModallyEvent();
545545
}
546+
controller = null;
546547
}
547548

548549
protected _hideNativeModalView(parent: View, whenClosedCallback: () => void) {

packages/core/ui/frame/index.ios.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export class Frame extends FrameBase {
4242
this._removeFromFrameStack();
4343
this.viewController = null;
4444
this._ios.controller = null;
45+
this._animatedDelegate = null;
46+
this._ios = null;
4547
super.disposeNativeView();
4648
}
4749

0 commit comments

Comments
 (0)