viewDidUnload, nil and release
The sample code doesn't seem correct on page 175 (ViewTaskController.m)
viewDidUnload just nils managedObjectContext and managedTaskObject rather than releasing it first.
In dealloc, they do a release, but this won't do anything if viewDidUnload was called first.
Shouldn't they be released before being set to nil?
Dean
Last edited by pulsifer; June 15th, 2011 at 08:55 PM..
Reason: Typo and missing information
|