iPhone - debugging "pointer being freed was not allocated" errors
When over freeing a pointer you may see an error such as "pointer being freed was not allocated" When debugging with the simulator, I add a build argument MallocStackLogging = YES - this allows me to use malloc_history in the terminal to track down where I have over freed a pointer. If I debug on the device with this build argument I ...