aboutsummaryrefslogtreecommitdiffstats
path: root/main.m
diff options
context:
space:
mode:
Diffstat (limited to 'main.m')
-rw-r--r--main.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.m b/main.m
index a7ea187..6390483 100644
--- a/main.m
+++ b/main.m
@@ -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;