From: Perttu Ahola Date: Sat, 21 May 2011 11:28:13 +0000 (+0300) Subject: fixed a small memory leak in mapnode.cpp X-Git-Tag: 0.2.20110731_3~184 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=60bb663bf817d4929a9b8da8cd80dcab13447123;p=oweals%2Fminetest.git fixed a small memory leak in mapnode.cpp --- 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)