title: Subclassing UIApplication to override sendEvent causes crash
body: <p>I'm trying subclass UIApplication to catch all touch event, this is used to see if user is afk or not. Anyway it works great first time you launch the application. If you put it in background and open it again 2 times then it crashes. I have no idea what causes this. I'm getting EXEC_BAD_ACCESS on [super sendEvent:event];</p>
  
  <p>My Subclass MyUI:</p>
  
  <pre><code>@implementation MyUI
  
  - (void)sendEvent:(UIEvent *)event {
      [super sendEvent:event]; // &lt;-- EXEC_BAD_ACCESS
  
      if (event.type == UIEventTypeTouches) {
          UITouch *touch = [event allTouches].anyObject;
          if (touch.phase == UITouchPhaseBegan) {
             // Calling some methods
          }
       }
  }  
  @end
  </code></pre>
  
  <p>Main.m</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      NSString* appClass = @"MyUI";
      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
      int retVal = UIApplicationMain(argc, argv, appClass, nil);
      [pool release];
      return retVal;
  }
  </code></pre>