Advertisement
Guest User

Untitled

a guest
Jul 18th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. - (void)didReceiveMemoryWarning {
  2. [super didReceiveMemoryWarning];
  3.  
  4. if ([self isViewLoaded] == NO) {
  5. // release the model, will be recreated in viewDidLoad
  6. [_brain release], self.brain = nil;
  7. }
  8. }
  9.  
  10. - (void)didReceiveMemoryWarning {
  11. [super didReceiveMemoryWarning];
  12.  
  13. if ([self isViewLoaded] == NO) {
  14. // will be recreated in viewDidLoad, only exists in vcSub1
  15. [self.zoomBrain release], [self setZoomBrain:nil];
  16.  
  17. _button = nil; // autoreleased, created programmatically
  18. }
  19. }
  20.  
  21. - (void)didReceiveMemoryWarning {
  22. [super didReceiveMemoryWarning];
  23.  
  24. if ([self isViewLoaded] == NO) {
  25. // nothing in here (yet)
  26. }
  27. }
  28.  
  29. Received simulated memory warning.
  30. -[AppDelegate applicationDidReceiveMemoryWarning:] [Line 81]
  31. -[vcSub2 didReceiveMemoryWarning] [Line 102]
  32. -[vcMain didReceiveMemoryWarning] [Line 73]
  33. -[vcSub2 viewDidUnload] [Line 112]
  34. -[vcMain viewDidUnload] [Line 65]
  35. -[vcSub1 didReceiveMemoryWarning] [Line 150]
  36. -[vcMain didReceiveMemoryWarning] [Line 73]
  37. -[vcSub1 viewDidUnload] [Line 143]
  38. -[vcMain viewDidUnload] [Line 65]
  39.  
  40. Received simulated memory warning.
  41. -[AppDelegate applicationDidReceiveMemoryWarning:] [Line 81]
  42. -[vcSub2 didReceiveMemoryWarning] [Line 102]
  43. -[vcMain didReceiveMemoryWarning] [Line 73]
  44. -[vcSub1 didReceiveMemoryWarning] [Line 150]
  45. -[vcMain didReceiveMemoryWarning] [Line 73]
  46. -[vcSub1 viewDidUnload] [Line 143]
  47. -[vcMain viewDidUnload] [Line 65]
  48. *** -[vcSub1 isViewLoaded]: message sent to deallocated instance 0x614de80
  49.  
  50. Alloc: Block address: 0x0614de80 length: 192
  51. Stack - pthread: 0xa0425540 number of frames: 21
  52. 0: 0x93f7f0a3 in malloc_zone_calloc
  53. 1: 0x93f7effa in calloc
  54. 2: 0x154a2d4 in class_createInstance
  55. 3: 0x13165d8 in +[NSObject(NSObject) allocWithZone:]
  56. 4: 0x13163da in +[NSObject(NSObject) alloc]
  57. 5: 0x2bf0 in -[AppDelegate application:didFinishLaunchingWithOptions:] at AppDelegate.m:47
  58. 6: 0x8dec89 in -[UIApplication _callInitializationDelegatesForURL:payload:suspended:]
  59. 7: 0x8e0d88 in -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:]
  60. 8: 0x8eb617 in -[UIApplication handleEvent:withNewEvent:]
  61. 9: 0x8e3abf in -[UIApplication sendEvent:]
  62. 10: 0x8e8f2e in _UIApplicationHandleEvent
  63. 11: 0x30b9992 in PurpleEventCallback
  64. 12: 0x13d3944 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
  65. 13: 0x1333cf7 in __CFRunLoopDoSource1
  66. 14: 0x1330f83 in __CFRunLoopRun
  67. 15: 0x1330840 in CFRunLoopRunSpecific
  68. 16: 0x1330761 in CFRunLoopRunInMode
  69. 17: 0x8e07d2 in -[UIApplication _run]
  70. 18: 0x8ecc93 in UIApplicationMain
  71. 19: 0x28f9 in main at main.m:14
  72. 20: 0x2875 in start
  73.  
  74. [self.zoomBrain release]
  75. [self setZoomBrain:nil];
  76.  
  77. [_brain release];
  78. self.brain = nil;
  79.  
  80. self.brain = nil;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement