Reputation: 390
Heapshots show that objects are not released, and at the same time logs show that dealloc was called. i do release all properties and remove all superviews in dealloc. So why memory is still not released?
Upvotes: 0
Views: 146
Reputation: 185663
If dealloc
was called, but the memory backing the object was not released, there are two possibilities:
[super dealloc]
at the end of your -dealloc
(only applies to non-ARC code)Upvotes: 1
Reputation: 41801
Did you (assuming you're not using ARC) call [super dealloc] at the end of your dealloc method?
Upvotes: 1