
Untitled
By: a guest on
Jul 4th, 2012 | syntax:
None | size: 0.64 KB | hits: 11 | expires: Never
Could a double release cause a crash?
0 libobjc.A.dylib 0x34a80466 objc_msgSend + 18
1 CoreFoundation 0x357e0f74 -[NSObject(NSObject) release] + 24
2 CoreFoundation 0x357e53c2 CFRelease + 62
3 CoreFoundation 0x35825fe6 -[__NSArrayM removeObjectAtIndex:] + 82
4 CoreFoundation 0x358237ae -[NSMutableArray removeAllObjects] + 30
5 [appName] 0x00006396 -[MainView actionSheet:clickedButtonAtIndex:] (MainView.m:790)
someArray = [[NSMutableArray alloc] init];
- (void)dealloc {
[someArray release];
}
[someArray removeAllObjects];