forked from oerkki/voxelands
Fix double free in createExtrudedMesh, reported by ptitSeb
This commit is contained in:
parent
f5512131a5
commit
d9a4a8f326
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue