From 36b7d434adb1c61da428d0505ee3ed80f561c7ad Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 4 Jan 2010 20:09:42 -0500 Subject: [PATCH] fixed extra ref count, half of bug #502212 --- SUUpdater.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUUpdater.m b/SUUpdater.m index e9629c99..151ac84b 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -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; }