From 2c09e8a84cac653b85bba3c85d781e24b5d6f4f8 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Sun, 12 May 2013 06:28:33 +0200 Subject: [PATCH] Fix double free in createExtrudedMesh, reported by ptitSeb --- src/mesh.cpp | 1 - 1 file changed, 1 deletion(-) 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(); -- 2.25.1