Hello guys!
I found a part of a code written by someone else.
@interface Fly : CCSprite
{
id var1;
id var2;
}
Then in the .m file
- (void) dealloc
{
[var1 release];
[var2 release];
// don't forget to call "super dealloc"
[super dealloc];
}
It is written right? I don't think the id type can be released. Maybe the isa variable in it... Can you explain me why this is released? Or can you help me to explain why is this bad?