We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 005408b + 688e8d2 commit 8a5f080Copy full SHA for 8a5f080
AsyncDisplayKit/ASControlNode.m
@@ -339,7 +339,8 @@ - (void)sendActionsForControlEvents:(ASControlNodeEvent)controlEvents withEvent:
339
_ASEnumerateControlEventsIncludedInMaskWithBlock(controlEvents, ^
340
(ASControlNodeEvent controlEvent)
341
{
342
- NSMapTable *eventDispatchTable = [_controlEventDispatchTable objectForKey:_ASControlNodeEventKeyForControlEvent(controlEvent)];
+ // Use a copy to itereate, the action perform could call remove causing a mutation crash.
343
+ NSMapTable *eventDispatchTable = [[_controlEventDispatchTable objectForKey:_ASControlNodeEventKeyForControlEvent(controlEvent)] copy];
344
345
// For each target interested in this event...
346
for (id target in eventDispatchTable)
0 commit comments