mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Fix memory leak in RCTSafeAreaView
Summary: According to the retain code collector, RCTSafeAreaView is in a cycle: -> _bridge -> RCTCxxBridge -> _moduleDataByName -> __NSDictionaryM -> RCTModuleData -> _instance -> RCTUIManager -> _viewRegistry -> __NSDictionaryM -> RCTSafeAreaView This should break the cycle. Reviewed By: shergin Differential Revision: D6213668 fbshipit-source-id: efb9c1dd148b72f66fe4485b81c16cd4c2d18b17
This commit is contained in:
parent
02f7c61cdd
commit
b8a5136d22
@ -15,7 +15,7 @@
|
||||
#import "RCTSafeAreaViewLocalData.h"
|
||||
|
||||
@implementation RCTSafeAreaView {
|
||||
RCTBridge *_bridge;
|
||||
__weak RCTBridge *_bridge;
|
||||
UIEdgeInsets _currentSafeAreaInsets;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user