Skip to content

Commit

Permalink
Fixed a stupid crash bug initializing the app
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Zitzmann authored and Nick Zitzmann committed Jul 25, 2011
1 parent fc1d643 commit e6bbb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.m
Expand Up @@ -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
Expand Down

0 comments on commit e6bbb14

Please sign in to comment.