IPhone: Modal View Controller Memory Leak
I have the same problem. I temporarily save the ViewController until I call presentModalViewController and then release alloc. But after dismissing the ModalViewControllerAnimated function, I never get the ViewController dealloc.
If I add self-release from the ViewController, I get this after the control is back in the event loop:
Program signal: "EXC_BAD_ACCESS". objc_msgSend
a source to share
With the same problem. I have a NavigationController that I present modally, and as the rootController of this NavigationController, I have a simple ViewController object. It is rare that I run my application against tools using Allocations and after dismissing modalController, in this case NavigationController, NavigationController goes away but rootController stays in memory and memory grows and grows. (note: "Leak in Tools" does not detect leaks and the app runs on a device, not a simulator).
a source to share