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:
e5652cb
)
Fix memory leak caused by mesh nodes (and nodeboxes)
author
Kahrl
<kahrl@gmx.net>
Mon, 20 Oct 2014 14:11:00 +0000
(16:11 +0200)
committer
Kahrl
<kahrl@gmx.net>
Mon, 20 Oct 2014 14:11:00 +0000
(16:11 +0200)
src/nodedef.cpp
patch
|
blob
|
history
diff --git
a/src/nodedef.cpp
b/src/nodedef.cpp
index 5735ef91465406dc99919c6c485b8ece14b61688..ee550523642d51dd031fa982024b61f58bb8db29 100644
(file)
--- a/
src/nodedef.cpp
+++ b/
src/nodedef.cpp
@@
-171,6
+171,12
@@
ContentFeatures::ContentFeatures()
ContentFeatures::~ContentFeatures()
{
+#ifndef SERVER
+ for (u32 i = 0; i < 24; i++) {
+ if (mesh_ptr[i])
+ mesh_ptr[i]->drop();
+ }
+#endif
}
void ContentFeatures::reset()