aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-05-12 06:28:33 +0200
committerKahrl <kahrl@gmx.net>2013-05-12 06:28:33 +0200
commit2c09e8a84cac653b85bba3c85d781e24b5d6f4f8 (patch)
treedf090a0b672403f42eed23cb9c9c258d1d1c4e56
parent9575b0a2a8bf6f5f24a98215cda494440e4f3831 (diff)
downloadminetest-2c09e8a84cac653b85bba3c85d781e24b5d6f4f8.tar.gz
minetest-2c09e8a84cac653b85bba3c85d781e24b5d6f4f8.tar.bz2
minetest-2c09e8a84cac653b85bba3c85d781e24b5d6f4f8.zip
Fix double free in createExtrudedMesh, reported by ptitSeb
-rw-r--r--src/mesh.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesh.cpp b/src/mesh.cpp
index da0dbe442..fd35a3a06 100644
--- a/src/mesh.cpp
+++ b/src/mesh.cpp
@@ -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();