Skip to content

Commit ae375cc

Browse files
committedOct 20, 2014
Fix memory leak caused by mesh nodes (and nodeboxes)
1 parent e5652cb commit ae375cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/nodedef.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ ContentFeatures::ContentFeatures()
171171

172172
ContentFeatures::~ContentFeatures()
173173
{
174+
#ifndef SERVER
175+
for (u32 i = 0; i < 24; i++) {
176+
if (mesh_ptr[i])
177+
mesh_ptr[i]->drop();
178+
}
179+
#endif
174180
}
175181

176182
void ContentFeatures::reset()

0 commit comments

Comments
 (0)
Please sign in to comment.