diff --git a/Source/Private/ASInternalHelpers.m b/Source/Private/ASInternalHelpers.m index 7727967c4..e0d757101 100644 --- a/Source/Private/ASInternalHelpers.m +++ b/Source/Private/ASInternalHelpers.m @@ -91,6 +91,7 @@ void ASPerformBackgroundDeallocation(id object) BOOL ASClassRequiresMainThreadDeallocation(Class c) { + // Specific classes if (c == [UIImage class] || c == [UIColor class]) { return NO; } @@ -101,10 +102,16 @@ BOOL ASClassRequiresMainThreadDeallocation(Class c) return YES; } + // Apple classes with prefix const char *name = class_getName(c); if (strncmp(name, "UI", 2) == 0 || strncmp(name, "AV", 2) == 0 || strncmp(name, "CA", 2) == 0) { return YES; } + + // Specific Texture classes + if (strncmp(name, "ASTextKitComponents", 19) == 0) { + return YES; + } return NO; }