1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix memory leaks in mod storage (#7500)

This commit is contained in:
red-001 2018-06-30 16:11:04 +01:00 committed by Loïc Blot
parent 9f19b7d936
commit 227c71eb76
2 changed files with 6 additions and 1 deletions

View file

@ -58,6 +58,11 @@ StorageRef::StorageRef(ModMetadata *object):
{
}
StorageRef::~StorageRef()
{
delete m_object;
}
void StorageRef::create(lua_State *L, ModMetadata *object)
{
StorageRef *o = new StorageRef(object);