Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
Dustin L. Howett authored August 07, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  templates/iphone/application.nic
2  templates/iphone/application.nic
@@ -21,7 +21,7 @@ file 8 RootViewController.mm
21 21
 
22 22
 @implementation RootViewController
23 23
 - (void)loadView {
24  
-	self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
  24
+	self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease];
25 25
 	self.view.backgroundColor = [UIColor redColor];
26 26
 }
27 27
 @end

0 notes on commit 10e303e

Please sign in to comment.
Something went wrong with that request. Please try again.