SettingsView *settings = [[SettingsView alloc] initWithNibName:@"SettingsView" bundle:[NSBundle mainBundle]];
settings.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self.navigationController presentModalViewController:settings animated:YES];
settings = nil;
[settings release];
Instruments claims that the following line is leaking
[self.navigationController presentModalViewController:settings animated:YES];
You need to release
settingsbefore setting it tonil, not after!What you’re doing now is the same as:
So the -release is being sent to
nil, not to yourSettingsViewobject. (And sending any message tonilis a NOOP).