Fix a bug found by the static analyzer: We do not own this timer, and we were (technically) leaking it. We now correctly manage its lifetime.
5 // Created by Evan Schoenberg on 5/10/07.
8 #import "GrowlApplication.h"
10 @implementation GrowlApplication
12 - (void)resetAutoreleasePool:(NSTimer *)timer
14 #pragma unused (timer)
15 [NSApp postEvent:[NSEvent otherEventWithType:NSApplicationDefined
18 timestamp: (double)(AbsoluteToDuration(UpTime())) / 1000.0
29 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
30 autoreleasePoolRefreshTimer = [[NSTimer scheduledTimerWithTimeInterval:30
32 selector:@selector(resetAutoreleasePool:)
39 [autoreleasePoolRefreshTimer invalidate];
40 [autoreleasePoolRefreshTimer release];
41 autoreleasePoolRefreshTimer = nil;