Closed GoogleCodeExporter closed 9 years ago
This is a quick fix (I'm surprised it works in the simulator):
In your CShell::Init function, the Texture and FileName are being deleted
twice. My
recommendation is to always null out after deleting, and to check if a variable
is
null prior to deleting it. This makes Leaks understand that the memory has been
released so it's better for the tools watching for memleaks.
Anyway, if you do something about the two lines calling delete on two already
deleted
but still referenced pointers, then this example fires right up on the device.
Original comment by gpx1...@gmail.com
on 17 Feb 2009 at 8:16
Thanks for the fix!
Original comment by wolfgang...@gmail.com
on 21 Feb 2009 at 1:56
Original issue reported on code.google.com by
salsi...@gmail.com
on 7 Feb 2009 at 1:46