From e2cc9e1953a142f182714fb02d7eca028398e368 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 22 Jan 2013 16:00:31 +0000 Subject: Tidy up. --- Source/SPGrowlController.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/SPGrowlController.m b/Source/SPGrowlController.m index b34443f4..9558208e 100644 --- a/Source/SPGrowlController.m +++ b/Source/SPGrowlController.m @@ -95,6 +95,7 @@ static SPGrowlController *sharedGrowlController = nil; } NSMutableDictionary *notificationDictionary = [NSMutableDictionary dictionary]; + [notificationDictionary setObject:title forKey:@"title"]; [notificationDictionary setObject:description forKey:@"description"]; [notificationDictionary setObject:document forKey:@"document"]; @@ -192,7 +193,10 @@ static SPGrowlController *sharedGrowlController = nil; */ - (void)setVisibilityForNotificationName:(NSString *)name { - if (timingNotificationName) [timingNotificationName release], timingNotificationName = nil; + if (timingNotificationName) { + [timingNotificationName release], timingNotificationName = nil; + } + timingNotificationName = [[NSString alloc] initWithString:name]; timingNotificationStart = [NSDate monotonicTimeInterval]; } -- cgit v1.2.3