Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 73373ee

Browse files
author
Rajinder Ramgarhia
committed
Fix ASControlNode mutation crash
1 parent 1d1a248 commit 73373ee

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

AsyncDisplayKit.xcodeproj/project.pbxproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,7 @@
15471547
058D09B9195D04C000B7D73C /* Frameworks */,
15481548
058D09BA195D04C000B7D73C /* Resources */,
15491549
3B9D88CDF51B429C8409E4B6 /* Copy Pods Resources */,
1550+
2AC85249A2221047409FABBB /* Embed Pods Frameworks */,
15501551
);
15511552
buildRules = (
15521553
);
@@ -1646,6 +1647,21 @@
16461647
/* End PBXResourcesBuildPhase section */
16471648

16481649
/* Begin PBXShellScriptBuildPhase section */
1650+
2AC85249A2221047409FABBB /* Embed Pods Frameworks */ = {
1651+
isa = PBXShellScriptBuildPhase;
1652+
buildActionMask = 2147483647;
1653+
files = (
1654+
);
1655+
inputPaths = (
1656+
);
1657+
name = "Embed Pods Frameworks";
1658+
outputPaths = (
1659+
);
1660+
runOnlyForDeploymentPostprocessing = 0;
1661+
shellPath = /bin/sh;
1662+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AsyncDisplayKitTests/Pods-AsyncDisplayKitTests-frameworks.sh\"\n";
1663+
showEnvVarsInLog = 0;
1664+
};
16491665
2E61B6A0DB0F436A9DDBE86F /* Check Pods Manifest.lock */ = {
16501666
isa = PBXShellScriptBuildPhase;
16511667
buildActionMask = 2147483647;

AsyncDisplayKit/ASControlNode.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ - (void)sendActionsForControlEvents:(ASControlNodeEvent)controlEvents withEvent:
339339
_ASEnumerateControlEventsIncludedInMaskWithBlock(controlEvents, ^
340340
(ASControlNodeEvent controlEvent)
341341
{
342-
NSMapTable *eventDispatchTable = [_controlEventDispatchTable objectForKey:_ASControlNodeEventKeyForControlEvent(controlEvent)];
342+
NSMapTable *eventDispatchTable = [[_controlEventDispatchTable objectForKey:_ASControlNodeEventKeyForControlEvent(controlEvent)] copy];
343343

344344
// For each target interested in this event...
345345
for (id target in eventDispatchTable)

0 commit comments

Comments
 (0)