# HG changeset patch # User Peter Hosey # Date 1255395060 25200 # Node ID 845941e3fa7f88583266e25fe45a3e80bdc90566 # Parent 49a403343bf0d5a5eef5c28931fcbd84d8e60c2c 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! diff -r 49a403343bf0 -r 845941e3fa7f Framework/Source/GrowlApplicationBridge.m --- a/Framework/Source/GrowlApplicationBridge.m Mon Oct 12 06:45:34 2009 -0700 +++ b/Framework/Source/GrowlApplicationBridge.m Mon Oct 12 17:51:00 2009 -0700 @@ -757,7 +757,7 @@ 0, kNoProcess }; while ((err = GetNextProcess(&appPSN)) == noErr) { - NSDictionary *dict = [(id)ProcessInformationCopyDictionary(&appPSN, kProcessDictionaryIncludeAllInformationMask) autorelease]; + NSDictionary *dict = [NSMakeCollectable(ProcessInformationCopyDictionary(&appPSN, kProcessDictionaryIncludeAllInformationMask)) autorelease]; NSString *bundlePath = [dict objectForKey:@"BundlePath"]; if ([bundlePath isEqualToString:growlHelperAppPath]) { //Match!