malloc: *** error for object 0x165060: pointer being freed was not allocated?
ios, ipad, iphone
Solution
You are probably releasing an object too many times (for example, calling alloc once and release twice). To find out where, take a look at the techniques in this question: How to find the cause of a malloc "double free" error?
I personally like the `NSZombieEnabled` method.
Another tip, is to set your variables to nil after you release them.
For example: `[bla release]; bla = nil;`
This makes sure you will not accidentally release them twice since releasing `nil` does nothing.
Problem
I have an application in which i have some videos and audios and some inapp purchases.all r great in simulator and working perfectly.But yesterday i have created an application and trying to run on it its crashing from the begning.The error report is ``` malloc: *** error for object 0x165060: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug ``` can anybody knows the solution .i dont know where it is going wrong and in simulator it is working perfectly.can anybody help me?