Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[templates] Fix a memory leak in iphone/application's RootViewControl…

…ler.

git-svn-id: http://svn.howett.net/svn/theos/trunk@425 4410221e-0ddf-4ce3-99c0-2db6c0dbc727
  • Loading branch information...
commit 10e303e6ab590183af6eab50a6ef7d36295eaa2e 1 parent 44a45e9
@DHowett DHowett authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  templates/iphone/application.nic
View
2  templates/iphone/application.nic
@@ -21,7 +21,7 @@ file 8 RootViewController.mm
@implementation RootViewController
- (void)loadView {
- self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
+ self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease];
self.view.backgroundColor = [UIColor redColor];
}
@end
Please sign in to comment.
Something went wrong with that request. Please try again.