Fixup last commit

This commit is contained in:
Eric Wasylishen 2011-01-16 16:07:01 -07:00
parent b2fe34b6b2
commit 8a5569043f

View file

@ -79,8 +79,14 @@ int main (int argc, char **argv)
}
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[[SDLApplication sharedApplication] run];
SDLApplication *app = [SDLApplication sharedApplication];
SDLMain *delegate = [[SDLMain alloc] init];
[app setDelegate: delegate];
[app run];
// Never reached
[delegate release];
[pool release];
return 0;
}