From a2bc2074cc7fdca7717be7873ae34c1933a5038e Mon Sep 17 00:00:00 2001 From: Ethan Nagel Date: Wed, 28 Oct 2015 11:01:01 -0700 Subject: [PATCH] release any CGColor's set while the node is in a pending state --- AsyncDisplayKit/Private/_ASPendingState.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AsyncDisplayKit/Private/_ASPendingState.m b/AsyncDisplayKit/Private/_ASPendingState.m index 0ce85df8..4d054314 100644 --- a/AsyncDisplayKit/Private/_ASPendingState.m +++ b/AsyncDisplayKit/Private/_ASPendingState.m @@ -981,4 +981,11 @@ return pendingState; } +- (void)dealloc +{ + CGColorRelease(backgroundColor); + CGColorRelease(shadowColor); + CGColorRelease(borderColor); +} + @end