Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix memory leak caused by mesh nodes (and nodeboxes)
  • Loading branch information
kahrl committed Oct 20, 2014
1 parent e5652cb commit ae375cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/nodedef.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit ae375cc

Please sign in to comment.