From: Kahrl Date: Sun, 12 May 2013 04:28:33 +0000 (+0200) Subject: Fix double free in createExtrudedMesh, reported by ptitSeb X-Git-Tag: 0.4.7~29^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2c09e8a84cac653b85bba3c85d781e24b5d6f4f8;p=oweals%2Fminetest.git Fix double free in createExtrudedMesh, reported by ptitSeb --- 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();