Browse files

Fixed a stupid crash bug initializing the app

  • Loading branch information...
1 parent fc1d643 commit e6bbb148c150639e3e3f172293fd0c6624623da4 Nick Zitzmann committed Jul 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.m
2 main.m
@@ -28,9 +28,9 @@ int main(int argc, char *argv[])
// Start me up:
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

0 comments on commit e6bbb14

Please sign in to comment.