My modal view controller is not calling its dealloc method when it dismisses itself. I have presented it using :
ViewController * vl = [[ViewController alloc] initWithNibName:@"ViewController" bundle:[NSBundle mainBundle]];
self.viewLink = vl;
[mainMenu stop];
[mainMenu setCurrentTime:0.0];
[vl release];
[self presentModalViewController:viewLink animated:NO];
Any ideas ?
Thanks,
Martin
Assuming
viewLinkis a@property(retain), it isn’t being deallocated because that object is retaining the modal view controller.