From: Kahrl Date: Sun, 12 May 2013 04:28:33 +0000 (+0200) Subject: Fix double free in createExtrudedMesh, reported by ptitSeb X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=2c09e8a84cac653b85bba3c85d781e24b5d6f4f8;p=zefram%2Fminetest%2Fminetest_engine.git Fix double free in createExtrudedMesh, reported by ptitSeb --- diff --git a/src/mesh.cpp b/src/mesh.cpp index da0dbe44..fd35a3a0 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();