fixed extra ref count, half of bug #502212

This commit is contained in:
Sean McBride committed 2010-01-04 20:09:42 -05:00
1 parent b21b308203
commit 36b7d434ad
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ static NSString * const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefault
if (bundle == nil) bundle = [NSBundle mainBundle];
id updater = [sharedUpdaters objectForKey:[NSValue valueWithNonretainedObject:bundle]];
if (updater == nil)
updater = [[[self class] alloc] initForBundle:bundle];
updater = [[[[self class] alloc] initForBundle:bundle] autorelease];
return updater;
}