projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f62f3
)
fixed a small memory leak in mapnode.cpp
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 21 May 2011 11:28:13 +0000
(14:28 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 21 May 2011 11:28:13 +0000
(14:28 +0300)
src/mapnode.cpp
patch
|
blob
|
history
diff --git
a/src/mapnode.cpp
b/src/mapnode.cpp
index c27f4848b4358ef41ace137e4000d1c1eebb8fa9..00ebef84026faa5e9a72ae6477b1f5058b7cb3a5 100644
(file)
--- 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)