title: Why do I have a memory leak in UIApplication
body: <p>I have an iphone app project.  I analysed it using instruments memory leak tool.  According to instruments I have 2 leaks the Trace is as follows:</p>
  
  <p><code>start main UIAplicationMain _run CFRunLoopInMode CFRunLoopRunSpecific PurpleEventCallback _UIAplicationHandleEvent sendEvent: handleEvent:withNewEvent:</code></p>
  
  <p>After this trace there are two separate traces.  What causes this and how can I fix it?</p>
  
  <p>edit: 
  The  leak is on the second line according to instruments </p>
  
  <pre><code> NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  int retVal = UIApplicationMain(argc, argv, nil, nil); //leak
  [pool release];
  return retVal;
  </code></pre>