Fix a leak in this BeepHammer -awakeFromNib method.
authorPeter Hosey <hg@boredzo.org>
Mon Nov 30 19:43:55 2009 -0800 (2009-11-30)
changeset 45534ec3953889a2
parent 4552 2f99d2f175f4
child 4554 19e93ceaef16
Fix a leak in this BeepHammer -awakeFromNib method.
Developer Tools/BeepHammer/BeepController.m
     1.1 --- a/Developer Tools/BeepHammer/BeepController.m	Fri Nov 27 20:11:35 2009 -0800
     1.2 +++ b/Developer Tools/BeepHammer/BeepController.m	Mon Nov 30 19:43:55 2009 -0800
     1.3 @@ -60,7 +60,7 @@
     1.4  	[GrowlApplicationBridge setGrowlDelegate:self];
     1.5  	
     1.6  #pragma mark This is a cheap hack to work with the preference
     1.7 -	NSDictionary *prefsDict = [[NSDictionary alloc] initWithContentsOfFile:GROWL_PREFS_PATH];
     1.8 +	NSDictionary *prefsDict = [NSDictionary dictionaryWithContentsOfFile:GROWL_PREFS_PATH];
     1.9  	[growlLoggingButton setState:[[prefsDict valueForKey:@"GrowlLoggingEnabled"] intValue]];
    1.10  }
    1.11