Fix #204 by retaining and autoreleasing each application ticket when retrieving it. maintenance-1.2
authorPeter Hosey <hg@boredzo.org>
Sat May 21 20:31:58 2011 -0700 (2011-05-21)
branchmaintenance-1.2
changeset 47086a7d2283b316
parent 4707 8886ff6f6c35
child 4709 8a32cacd12b0
Fix #204 by retaining and autoreleasing each application ticket when retrieving it.
Core/Source/GrowlTicketController.m
     1.1 --- a/Core/Source/GrowlTicketController.m	Sat May 21 12:14:05 2011 -0700
     1.2 +++ b/Core/Source/GrowlTicketController.m	Sat May 21 20:31:58 2011 -0700
     1.3 @@ -101,7 +101,7 @@
     1.4  }
     1.5  
     1.6  - (GrowlApplicationTicket *) ticketForApplicationName:(NSString *)appName {
     1.7 -	return [ticketsByApplicationName objectForKey:appName];
     1.8 +	return [[[ticketsByApplicationName objectForKey:appName] retain] autorelease];
     1.9  }
    1.10  - (void) addTicket:(GrowlApplicationTicket *) newTicket {
    1.11  	NSString *appName = [newTicket applicationName];