Skip to content

Commit a2bc207

Browse files
committed
release any CGColor's set while the node is in a pending state
1 parent 2c8626e commit a2bc207

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

AsyncDisplayKit/Private/_ASPendingState.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,4 +981,11 @@ + (_ASPendingState *)pendingViewStateFromView:(UIView *)view
981981
return pendingState;
982982
}
983983

984+
- (void)dealloc
985+
{
986+
CGColorRelease(backgroundColor);
987+
CGColorRelease(shadowColor);
988+
CGColorRelease(borderColor);
989+
}
990+
984991
@end

0 commit comments

Comments
 (0)