Fix double free in createExtrudedMesh, reported by ptitSeb

This commit is contained in:
Kahrl 2013-05-12 06:28:33 +02:00
parent 9575b0a2a8
commit 2c09e8a84c

@ -284,7 +284,6 @@ scene::IAnimatedMesh* createExtrudedMesh(video::ITexture *texture,
if (img2 != NULL) if (img2 != NULL)
{ {
img1->copyTo(img2); img1->copyTo(img2);
img1->drop();
mesh = extrudeARGB(size.Width, size.Height, (u8*) img2->lock()); mesh = extrudeARGB(size.Width, size.Height, (u8*) img2->lock());
img2->unlock(); img2->unlock();