mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-27 22:54:46 +08:00
Memory Leaks caused by RCTNavigator
Summary: releasing the viewControllers referred by _navigationController.viewControllers, which is also releasing the related views Closes https://github.com/facebook/react-native/pull/3808 Reviewed By: svcscm Differential Revision: D2604735 Pulled By: javache fb-gh-sync-id: f202d155f04169f3f0f0ef26365b37b8525b6687
This commit is contained in:
committed by
facebook-github-bot-5
parent
a456ac3ced
commit
7236788f34
@@ -335,6 +335,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||
- (void)dealloc
|
||||
{
|
||||
_navigationController.delegate = nil;
|
||||
[_navigationController removeFromParentViewController];
|
||||
}
|
||||
|
||||
- (UIViewController *)reactViewController
|
||||
|
||||
Reference in New Issue
Block a user