Quote:
Originally Posted by dda
No. addingManagedObjectContext is an instance variable that is released in the dealloc method of the class it's part of.
Regards,
DDA
|
Thanks so much for your reply.
Please help me out here. As I see it
line 255 : // Release the adding managed object context.
line 256 : self.addingManagedObjectContext = nil;
just prior to execution of line 255 and just after it too,
the retainCount == 1 on the object pointed to by addManagedObjectContext.
The command in the method dealloc would be:
[addingManagedObjectContext release];
This would result in the decrementation of the retainCount from 1 to zero
for the object pointed to by the variable:
addingManagedObjectContext .
Problem is, this variable/pointer has been set to nil
and the object that it used to point to is still sitting
in memory with a retainCount == 1 . Or ?
Furthermore, I don't see, any check for
if(addingManagedObjectContext == nil)
in the code, to use it as a flag. Please let me
know if I am missing something.