aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-05-21 14:28:13 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-05-21 14:28:13 +0300
commit60bb663bf817d4929a9b8da8cd80dcab13447123 (patch)
treec990bfbb18f2369595a13ac2fd2d31269b3550c7
parente3f62f354ee770b119f63125a0d990d4f65ff111 (diff)
downloadminetest-60bb663bf817d4929a9b8da8cd80dcab13447123.tar.gz
minetest-60bb663bf817d4929a9b8da8cd80dcab13447123.tar.bz2
minetest-60bb663bf817d4929a9b8da8cd80dcab13447123.zip
fixed a small memory leak in mapnode.cpp
-rw-r--r--src/mapnode.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp
index c27f4848b..00ebef840 100644
--- a/src/mapnode.cpp
+++ b/src/mapnode.cpp
@@ -31,6 +31,8 @@ ContentFeatures::~ContentFeatures()
{
if(translate_to)
delete translate_to;
+ if(initial_metadata)
+ delete initial_metadata;
}
void ContentFeatures::setTexture(u16 i, std::string name, u8 alpha)