mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Fixes #241762
+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:
1 parent
af245f3e89
commit
7664995dfc
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user