From 7664995dfc8eff58f0dc15e681915b223527623a Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Fri, 20 Jun 2008 22:00:50 -0700 Subject: [PATCH] Fixes #241762 +load is called before there's an NSAutoreleasePool, so now Sparkle uses [[NSMutableArray alloc] init] instead of [[NSMutableArray array] retain]. --- SUUnarchiver_Private.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SUUnarchiver_Private.m b/SUUnarchiver_Private.m index 938db13e..ed7e2e97 100644 --- a/SUUnarchiver_Private.m +++ b/SUUnarchiver_Private.m @@ -50,9 +50,11 @@ static NSMutableArray *__unarchiverImplementations; + (void)_registerImplementation:(Class)implementation { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; if (!__unarchiverImplementations) __unarchiverImplementations = [[NSMutableArray array] retain]; [__unarchiverImplementations addObject:implementation]; + [pool drain]; } + (NSArray *)_unarchiverImplementations