Fix a memleak before assertion in l_get_mod_storage

This commit is contained in:
Loic Blot 2018-06-30 10:32:02 +02:00
parent 2513886969
commit d7f873bc8d
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987

@ -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
}