Fix double free in createExtrudedMesh, reported by ptitSeb
authorKahrl <kahrl@gmx.net>
Sun, 12 May 2013 04:28:33 +0000 (06:28 +0200)
committerKahrl <kahrl@gmx.net>
Sun, 12 May 2013 04:28:33 +0000 (06:28 +0200)
src/mesh.cpp

index da0dbe44235d3b049d1a273c96d09865184a2100..fd35a3a062d6b348fa58b7eb202de48d2d222409 100644 (file)
@@ -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();