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

Commit

Permalink
Merge pull request #832 from facebook/WindowTeardownCrash
Browse files Browse the repository at this point in the history
Fix for behavior difference between CA and UIKit that causes mutation crash.
  • Loading branch information
appleguy committed Nov 9, 2015
2 parents 8b465c5 + bfe908b commit 5b1e214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AsyncDisplayKit/Details/ASRangeHandlerRender.mm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ - (UIWindow *)workingWindow

- (void)dealloc
{
for(CALayer *layer in self.workingWindow.layer.sublayers) {
for(CALayer *layer in [self.workingWindow.layer.sublayers copy]) {
ASDisplayNode *node = layer.asyncdisplaykit_node;
[self node:node exitedRangeOfType:ASLayoutRangeTypeRender];
}
Expand Down

0 comments on commit 5b1e214

Please sign in to comment.