Sujeev's Tech Blog

Wednesday, October 27, 2010

NSObject based property release order

I guess this is valid not just for NSObject.

when releasing objects that are used within a class always use [super dealloc] as the last command.


ex:

[mylist release];
[plist release];
[super dealloc];

0 Comments:

Post a Comment

<< Home