mirror of https://github.com/bjornbytes/lovr.git
Fix filesystem memory leaks;
This commit is contained in:
parent
be13d761e7
commit
e74149a762
|
@ -18,6 +18,8 @@ void lovrFilesystemInit(const char* arg0) {
|
|||
}
|
||||
|
||||
void lovrFilesystemDestroy() {
|
||||
free(state.savePathFull);
|
||||
free(state.savePathRelative);
|
||||
PHYSFS_deinit();
|
||||
}
|
||||
|
||||
|
|
|
@ -177,6 +177,7 @@ int l_lovrFilesystemRead(lua_State* L) {
|
|||
}
|
||||
|
||||
lua_pushlstring(L, content, size);
|
||||
free(content);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue