diff options
Diffstat (limited to 'main.m')
| -rw-r--r-- | main.m | 7 | 
1 files changed, 3 insertions, 4 deletions
| @@ -4,9 +4,11 @@  #import "DDHotKeyCenter.h"  int main(int argc, const char * argv[]) { +    [NSAutoreleasePool new]; +      [NSApplication sharedApplication]; -    Invert *invert = [[Invert alloc] init]; +    Invert *invert = [[[Invert alloc] init] autorelease];      DDHotKeyCenter *c = [DDHotKeyCenter sharedHotKeyCenter];      if ( @@ -20,9 +22,6 @@ int main(int argc, const char * argv[]) {          NSLog(@"Error registering hotkey");      } -    // TODO: trap? -    // [invert release]; -      [NSApp run];      return 0; | 
