Predict param2 of facedir nodes and attachment of attached_node nodes
[oweals/minetest.git] / src / mesh.cpp
index 4bfbc40c8d7560849458e9cb25e1e01e775b2fec..fd35a3a062d6b348fa58b7eb202de48d2d222409 100644 (file)
@@ -1,6 +1,6 @@
 /*
 Minetest
-Copyright (C) 2010-2011 celeron55, Perttu Ahola <celeron55@gmail.com>
+Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -246,6 +246,8 @@ static scene::IAnimatedMesh* extrudeARGB(u32 twidth, u32 theight, u8 *data)
                }
        }
 
+       delete[] solidity;
+
        // Add to mesh
        scene::SMesh *mesh = new scene::SMesh();
        mesh->addMeshBuffer(buf);
@@ -282,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();