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

Commit 5b1e214

Browse files
committed
Merge pull request #832 from facebook/WindowTeardownCrash
Fix for behavior difference between CA and UIKit that causes mutation crash.
2 parents 8b465c5 + bfe908b commit 5b1e214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncDisplayKit/Details/ASRangeHandlerRender.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ - (UIWindow *)workingWindow
4040

4141
- (void)dealloc
4242
{
43-
for(CALayer *layer in self.workingWindow.layer.sublayers) {
43+
for(CALayer *layer in [self.workingWindow.layer.sublayers copy]) {
4444
ASDisplayNode *node = layer.asyncdisplaykit_node;
4545
[self node:node exitedRangeOfType:ASLayoutRangeTypeRender];
4646
}

0 commit comments

Comments
 (0)