Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a stupid crash bug initializing the app

  • Loading branch information...
commit e6bbb148c150639e3e3f172293fd0c6624623da4 1 parent fc1d643
Nick Zitzmann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  main.m
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.