aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nodedef.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 5735ef914..ee5505236 100644
--- 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()