Object not dealloc'ed when using ARC + NSZombieEnabled

Originator:russell
Number:rdar://10537635 Date Originated:12/6/2011
Status:Open Resolved:
Product:iOS SDK Product Version:XCode 4.3
Classification:Serious Reproducible:Always
 
06-Dec-2011 03:27 PM Russell Johnson:
Summary:
When compiling with ARC with Zombie Objects Enabled an object allocated in a secondary view controller is not deallocated when the secondary view controller is deallocated.

Steps to Reproduce:
The problem will reproduce in the simulator and on devices. Run the sample project do the following steps.
1) Tap the 'info' button to flip to the secondary view controller
2) Notice the NSLog message that the actions controller was initialized
3) Tap the 'done' button to flip back to the root view controller

Expected Results:
The actions controller should be deallocated and you see this in an NSLog message

Actual Results:
With the Zombie Objects Enabled setting OFF you will see an NSLog message that the actions controller was deallocated. With Zombie Objects Enabled set to ON the actions controller is not deallocated.

Comments

sample app

The sample app showing the problem can be found at https://github.com/xjones/XJARCTestApp


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!