From e6bbb148c150639e3e3f172293fd0c6624623da4 Mon Sep 17 00:00:00 2001 From: Nick Zitzmann Date: Sun, 24 Jul 2011 21:50:40 -0600 Subject: [PATCH] Fixed a stupid crash bug initializing the app --- main.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.m b/main.m index 3c3a7d9..32c781a 100644 --- a/main.m +++ b/main.m @@ -28,9 +28,9 @@ int main(int argc, char *argv[]) // Start me up: objc_startCollectorThread(); sleep(1); // wait a second for the collector thread to come up + baker = [[ABBaker alloc] init]; if ([GrowlApplicationBridge isGrowlInstalled]) [GrowlApplicationBridge setGrowlDelegate:baker]; // initialize Growl - baker = [[ABBaker alloc] init]; [[NSGarbageCollector defaultCollector] disableCollectorForPointer:baker]; // don't kill the baker if ([[NSProcessInfo processInfo] respondsToSelector:@selector(enableSuddenTermination)]) [[NSProcessInfo processInfo] performSelector:@selector(enableSuddenTermination)]; // on Snow Leopard & later, let the login window kill us dead when the user wants to log out; we don't care