Skip to content
Snippets Groups Projects
Commit ae375cc3 authored by Kahrl's avatar Kahrl
Browse files

Fix memory leak caused by mesh nodes (and nodeboxes)

parent e5652cb7
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment