How to find the cause of a malloc “double free” error?

后端 未结 13 958
情深已故
情深已故 2020-11-27 09:51

I\'m programming an application in Objective-C and I\'m getting this error:

MyApp(2121,0xb0185000) malloc: *** error for object 0x1068310: double

13条回答
  •  被撕碎了的回忆
    2020-11-27 10:37

    Check your classes and look under the dealloc method. Make sure you care calling [super dealloc].

    I had this exact same problem and found out I was calling [self dealloc] instead. Just not paying attention.

提交回复
热议问题