+load is called before there's an NSAutoreleasePool, so now Sparkle uses [[NSMutableArray alloc] init] instead of [[NSMutableArray array] retain].
This commit is contained in:
Andy Matuschak committed 2008-06-20 22:00:50 -07:00
1 parent af245f3e89
commit 7664995dfc
1 file changed
+2
+2
View File
@@ -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