mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-04 18:29:41 +01:00
Fix leaking GetBasePath result
This commit is contained in:
parent
8cf79aaf72
commit
4c4f8de0d5
1 changed files with 3 additions and 1 deletions
|
@ -117,10 +117,12 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath)
|
|||
}
|
||||
else
|
||||
{
|
||||
char *basePath = SDL_GetBasePath();
|
||||
SDL_snprintf(output, sizeof(output), "%s%s",
|
||||
SDL_GetBasePath(),
|
||||
basePath,
|
||||
"data.zip"
|
||||
);
|
||||
SDL_free(basePath);
|
||||
}
|
||||
if (!PHYSFS_mount(output, NULL, 1))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue