From c0da6cc4eb86a6b722f0e2cc54612df7fcbec421 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Fri, 9 Sep 2016 17:39:35 -0700 Subject: [PATCH] Couple tweaks --- AsyncDisplayKit/ASDisplayNode.mm | 2 +- AsyncDisplayKit/Private/ASInternalHelpers.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AsyncDisplayKit/ASDisplayNode.mm b/AsyncDisplayKit/ASDisplayNode.mm index 2db488ab..0b5fba49 100644 --- a/AsyncDisplayKit/ASDisplayNode.mm +++ b/AsyncDisplayKit/ASDisplayNode.mm @@ -445,7 +445,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c) for (NSUInteger i = 0; i < count; i++) { id value = object_getIvar(self, ivars[i]); if (ASClassRequiresMainThreadDeallocation(object_getClass(value))) { - LOG(@"Trampoling ivar '%s' value %@ for main deallocation.", ivar_getName(ivars[i]), value); + LOG(@"Trampolining ivar '%s' value %@ for main deallocation.", ivar_getName(ivars[i]), value); [queue enqueue:value]; } else { LOG(@"Not trampolining ivar '%s' value %@.", ivar_getName(ivars[i]), value); diff --git a/AsyncDisplayKit/Private/ASInternalHelpers.m b/AsyncDisplayKit/Private/ASInternalHelpers.m index 4d50b08e..e1f2cdb5 100644 --- a/AsyncDisplayKit/Private/ASInternalHelpers.m +++ b/AsyncDisplayKit/Private/ASInternalHelpers.m @@ -89,7 +89,7 @@ void ASPerformBlockOnDeallocationQueue(void (^block)()) BOOL ASClassRequiresMainThreadDeallocation(Class class) { - if (class == [UIImage class]) { + if (class == [UIImage class] || class == [UIColor class]) { return NO; }