mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix a memleak before assertion in l_get_mod_storage
This commit is contained in:
parent
2513886969
commit
d7f873bc8d
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ int ModApiStorage::l_get_mod_storage(lua_State *L)
|
|||
store->load(gamedef->getModStoragePath());
|
||||
gamedef->registerModStorage(store);
|
||||
} else {
|
||||
delete store;
|
||||
assert(false); // this should not happen
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue