Permalink
Browse files

fix double-release [noprocrast]

  • Loading branch information...
Patrick Collison
Patrick Collison committed Mar 2, 2009
1 parent 221d422 commit ef4c7f3340da0a48eb1d95e4449efdea117801b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 noprocrast/noprocrast.m
View
@@ -56,7 +56,7 @@
CGEventRef cfEventCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon) {
NSAutoreleasePool *pool = [NSAutoreleasePool new];
- NSEvent *e = [[NSEvent eventWithCGEvent:event] autorelease];
+ NSEvent *e = [NSEvent eventWithCGEvent:event];
if(type == lastEventType && (type == kCGEventMouseMoved || type == kCGEventScrollWheel)) {
if([e timestamp] - lastCompressableEventTime < 0.2) {

0 comments on commit ef4c7f3

Please sign in to comment.