mirror of
https://github.com/minetest/minetest.git
synced 2025-03-14 06:12:36 +01:00
Fix double free in createExtrudedMesh, reported by ptitSeb
This commit is contained in:
@ -284,7 +284,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();
|
||||
|
Reference in New Issue
Block a user