Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.64 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Could a double release cause a crash?
  2. 0   libobjc.A.dylib                0x34a80466 objc_msgSend + 18
  3. 1   CoreFoundation                 0x357e0f74 -[NSObject(NSObject) release] + 24
  4. 2   CoreFoundation                 0x357e53c2 CFRelease + 62
  5. 3   CoreFoundation                 0x35825fe6 -[__NSArrayM removeObjectAtIndex:] + 82
  6. 4   CoreFoundation                 0x358237ae -[NSMutableArray removeAllObjects] + 30
  7. 5   [appName]                      0x00006396 -[MainView actionSheet:clickedButtonAtIndex:] (MainView.m:790)
  8.        
  9. someArray = [[NSMutableArray alloc] init];
  10.        
  11. - (void)dealloc {
  12.  
  13. [someArray release];
  14.  
  15. }
  16.        
  17. [someArray removeAllObjects];