Oops. Now, the clang static analyzer now flags this as a use-after-release. I need to release the plug-in bundle later; i.e, at the end of the method.
1.1 --- a/Plugins/Displays/WebKit/GrowlWebKitPluginHandler.m Sun Jul 06 16:50:35 2008 +0000
1.2 +++ b/Plugins/Displays/WebKit/GrowlWebKitPluginHandler.m Sun Jul 06 17:07:42 2008 +0000
1.3 @@ -25,7 +25,6 @@
1.4 NSLog(@"%@ Failed to load: %@",NSStringFromClass([self class]),path);
1.5 return NO;
1.6 }
1.7 - [pluginBundle release];
1.8
1.9 GrowlWebKitDisplayPlugin *instance = [[GrowlWebKitDisplayPlugin alloc] initWithStyleBundle:pluginBundle];
1.10 if (!instance) {
1.11 @@ -37,6 +36,7 @@
1.12
1.13 [[GrowlPluginController sharedController] addPluginInstance:instance fromBundle:pluginBundle];
1.14 [instance release];
1.15 + [pluginBundle release];
1.16 return YES;
1.17 }
1.18