Memory leak while using UIImageWriteToSavedPhotosAlbum(imageView.image,nil, nil, nil);? how can i remove memory leak for this situation? when i try with out this line,There is no memory leak.
views:
785answers:
2
+1
A:
The nil,nil,nil is your problem.
One of those nils, is called (SEL)completionSelector
You pass it a method selector. Inside that method, you free the memory. Apple's documentation explains this if I recall correctly. If not, I'm sure I've seen something by searching google showing how this should be done.
Kailoa Kadano
2009-03-24 22:12:57
A:
Remember that the Simulator may leak memory when the device does not.
Always test on the device for leaks.
Good luck!
Genericrich
2009-03-24 22:17:52