fixed a small memory leak in mapnode.cpp
authorPerttu Ahola <celeron55@gmail.com>
Sat, 21 May 2011 11:28:13 +0000 (14:28 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 21 May 2011 11:28:13 +0000 (14:28 +0300)
src/mapnode.cpp

index c27f4848b4358ef41ace137e4000d1c1eebb8fa9..00ebef84026faa5e9a72ae6477b1f5058b7cb3a5 100644 (file)
@@ -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)