Fixed another, similar leak in BeepHammer, found by the analyzer.
authorPeter Hosey <hg@boredzo.org>
Mon Nov 30 19:45:07 2009 -0800 (2009-11-30)
changeset 4555febb38b502a7
parent 4554 19e93ceaef16
child 4556 c928953c5ec9
Fixed another, similar leak in BeepHammer, found by the analyzer.
Developer Tools/BeepHammer/BeepController.m
     1.1 --- a/Developer Tools/BeepHammer/BeepController.m	Mon Nov 30 19:44:53 2009 -0800
     1.2 +++ b/Developer Tools/BeepHammer/BeepController.m	Mon Nov 30 19:45:07 2009 -0800
     1.3 @@ -67,7 +67,7 @@
     1.4  - (IBAction)toggleGrowlLogging:(id)sender
     1.5  {
     1.6  #pragma mark This is a cheap hack to work with the preference
     1.7 -	NSMutableDictionary *prefsDict = [[NSMutableDictionary alloc] initWithContentsOfFile:GROWL_PREFS_PATH];
     1.8 +	NSMutableDictionary *prefsDict = [NSMutableDictionary dictionaryWithContentsOfFile:GROWL_PREFS_PATH];
     1.9  	[prefsDict setObject:[NSNumber numberWithInt:[sender state]] forKey:@"GrowlLoggingEnabled"];
    1.10  	[prefsDict writeToFile:GROWL_PREFS_PATH atomically:NO];
    1.11  }