From 60bb663bf817d4929a9b8da8cd80dcab13447123 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 21 May 2011 14:28:13 +0300 Subject: [PATCH] fixed a small memory leak in mapnode.cpp --- src/mapnode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mapnode.cpp b/src/mapnode.cpp index c27f4848..00ebef84 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) -- 2.30.2