mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix memory leak caused by mesh nodes (and nodeboxes)
This commit is contained in:
parent
e5652cb75c
commit
ae375cc322
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue