Permalink
Browse files
Fix a memleak before assertion in l_get_mod_storage
- Loading branch information...
Showing
with
1 addition
and
0 deletions.
-
+1
−0
src/script/lua_api/l_storage.cpp
|
@@ -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 |
|
|
|
} |
|
|
|
|
|
|
0 comments on commit
d7f873b