Skip to content

Instantly share code, notes, and snippets.

@mike3k
Created June 21, 2011 03:13
Show Gist options
  • Select an option

  • Save mike3k/1037167 to your computer and use it in GitHub Desktop.

Select an option

Save mike3k/1037167 to your computer and use it in GitHub Desktop.
Autorelease pool
#import <UIKit/UIKit.h>
#import "CoLocAppDelegate.h"
int main(int argc, char *argv[])
{
int retVal = 0;
NSAutoreleasePool *ap = [[NSAutoreleasePool alloc] init];
retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([CoLocAppDelegate class]));
[ap release];
return retVal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment