Fixed a leak when running the framework under GC, found by the Clang Static Analyzer.
authorPeter Hosey <hg@boredzo.org>
Mon Oct 12 17:51:00 2009 -0700 (2009-10-12)
changeset 4513845941e3fa7f
parent 4512 49a403343bf0
child 4514 d71f842e5297
Fixed a leak when running the framework under GC, found by the Clang Static Analyzer.

Did you know that CFMakeCollectable exists on Mac OS X 10.4? I didn't!
Framework/Source/GrowlApplicationBridge.m
     1.1 --- a/Framework/Source/GrowlApplicationBridge.m	Mon Oct 12 06:45:34 2009 -0700
     1.2 +++ b/Framework/Source/GrowlApplicationBridge.m	Mon Oct 12 17:51:00 2009 -0700
     1.3 @@ -757,7 +757,7 @@
     1.4  				0, kNoProcess
     1.5  			};
     1.6  			while ((err = GetNextProcess(&appPSN)) == noErr) {
     1.7 -				NSDictionary *dict = [(id)ProcessInformationCopyDictionary(&appPSN, kProcessDictionaryIncludeAllInformationMask) autorelease];
     1.8 +				NSDictionary *dict = [NSMakeCollectable(ProcessInformationCopyDictionary(&appPSN, kProcessDictionaryIncludeAllInformationMask)) autorelease];
     1.9  				NSString *bundlePath = [dict objectForKey:@"BundlePath"];
    1.10  				if ([bundlePath isEqualToString:growlHelperAppPath]) {
    1.11  					//Match!