mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 21:53:30 +00:00
[ReactNative] Fix retain cycle on DevMenu
Summary: @public There was an iVar being directly referenced from inside a block on RCTDevMenu that was causing a retain cycle and the dev menu wasn't being released. Test Plan: Put a break point on dealloc, it should be called now.
This commit is contained in:
parent
0116abed4f
commit
6cf570db35
@ -142,7 +142,7 @@ RCT_EXPORT_MODULE()
|
||||
[commands registerKeyCommandWithInput:@"i"
|
||||
modifierFlags:UIKeyModifierCommand
|
||||
action:^(__unused UIKeyCommand *command) {
|
||||
[_bridge.eventDispatcher
|
||||
[weakSelf.bridge.eventDispatcher
|
||||
sendDeviceEventWithName:@"toggleElementInspector"
|
||||
body:nil];
|
||||
}];
|
||||
|
Loading…
x
Reference in New Issue
Block a user