error for object 0xb50dd20: double free

2019-05-11 12:20发布

问题:

Is anyone familiar with the problem. I have read this post however its hard for me to provide code when I don't have any idea where in the code the error originates. Any one have any ideas?

Name(9369,0xa09cd500) malloc: * error for object 0xb50dd20: double free * set a breakpoint in malloc_error_break to debug

回答1:

Do as the debugger tells you: set a breakpoint on malloc_error_break.

Run → Manage Breakpoints → Add Symbolic Breakpoint.



回答2:

You have release an object that you are not responsible...
there was many thread on this subject.

To summarized, you have to release (or autorelease) only object you have alloc, retain or copy