I have a leaked object in the following code. How do I fix it? I tried adding a [apiViewController release]; but when I analyze the app I still get a :
if (idx == 2) {
NSLog(@"you touched menu 2");
APICallsViewController *apiViewController = [APICallsViewController alloc];
[self.navigationController pushViewController:apiViewController animated:YES];
//[apiViewController getFriendsCallAPIDialogFeed];
[apiViewController getAppUsersFriendsUsing];
}
thanks for any help
You are forgetting the -init, and the -release.
You probably need to read up on Objective-C programming.