TwoLivesLeft/Codea-Runtime — pull request #5 by cjhanson (2012-04-26 08:55:41+00:00)
Title: Fixed memory leaks and analyzer warnings.

CodifyAppDelegate
- Fixed memory leak by autoreleasing "Project" where the retained property "self.currentProject" was being assigned a retained "Project" in "- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions"

BasicRendererViewController
- Fixed runtime warning about returning NO to all supported orientations by setting up the supported orientations in the init method instead of the setup method
- Removed superfluous call to add SupportedOrientations from prepareViewForDisplay

CodifyScriptExecute
- init preloadScripts to an array with a capacity rather than using an autoreleased object
- Fixed memory leak by removing "retain" from adding objects to the preloadScripts array (the array will retain objects added and release when removed internally)
- Fixed warning about unknown selector "clearErrorMessage" by using performSelector: instead of just calling the selector directly

Persistence
- Fixed memory leak in createUIImageFromImage() by releasing the colorSpaceRef