mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-17 14:55:13 -05:00
Fix memory leak caused by mesh nodes (and nodeboxes)
This commit is contained in:
parent
e5652cb75c
commit
ae375cc322
@ -171,6 +171,12 @@ ContentFeatures::ContentFeatures()
|
|||||||
|
|
||||||
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()
|
void ContentFeatures::reset()
|
||||||
|
Loading…
Reference in New Issue
Block a user