Search code examples
objective-ciosxcodeios4instruments

Memory Leaks profiler in Xcode - How reliable is it?


I have tried using the memory profiler in xCode.

It flags a number of objects as leaked object but when I open the history of the object, the last operation on that object is a release that sets the object reference's count to zero.

How reliable is the results shown in that tool ? are they potential memory leaks or confirmed ones ?

And if it is definitely a memory leak why is it happening when I have the last reference count is zero ? could it be something wrong in the way I am configuring xCode's profiler (I just press cmd + i)? Jamil


Solution

  • Ah I found the mistake !

    I wasn't calling [super deallco] in the dealloc of the class of these instances