Fix filesystem memory leaks;

This commit is contained in:
bjorn 2016-11-07 22:23:13 -08:00
parent be13d761e7
commit e74149a762
2 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,8 @@ void lovrFilesystemInit(const char* arg0) {
}
void lovrFilesystemDestroy() {
free(state.savePathFull);
free(state.savePathRelative);
PHYSFS_deinit();
}

View File

@ -177,6 +177,7 @@ int l_lovrFilesystemRead(lua_State* L) {
}
lua_pushlstring(L, content, size);
free(content);
return 1;
}