Fix double free in createExtrudedMesh, reported by ptitSeb

This commit is contained in:
darkrose 2013-05-12 15:37:33 +10:00
parent f5512131a5
commit d9a4a8f326
1 changed files with 2 additions and 3 deletions

View File

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