[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…
Reference in New Issue