objective-c over-releasing in dealloc
Posted
by Dude Man
on Stack Overflow
See other posts from Stack Overflow
or by Dude Man
Published on 2010-05-23T04:13:23Z
Indexed on
2010/05/23
4:20 UTC
Read the original article
Hit count: 319
Is mystring over-released?
-(void)dealloc {
[mystring release];
[mystring release];
[super dealloc];
}
I assume this will not based on [nil release] does nothing:
-(void)dealloc {
[mystring release];
mystring = nil;
[mystring release];
[super dealloc];
}
© Stack Overflow or respective owner