pushViewController causes memory leak
Posted
by hookjd
on Stack Overflow
See other posts from Stack Overflow
or by hookjd
Published on 2010-03-27T23:45:09Z
Indexed on
2010/03/27
23:53 UTC
Read the original article
Hit count: 556
The Leaks application tells me that the following function is causing a memory leak and I can't figure out why.
-(void)viewGameList {
GameListController *gameListViewController = [[GameListController alloc] initWithNibName:@"GameListController" bundle:nil];
gameListViewController.rootController = self;
[self.navigationController pushViewController:gameListViewController animated:YES];
[gameListViewController release];
}
It tells me that this line causes a 128 byte memory leak.
[self.navigationController pushViewController:gameListViewController animated:YES];
Am I missing something obvious?
© Stack Overflow or respective owner