mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix leaking GetBasePath result
This commit is contained in:
@@ -117,10 +117,12 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
char *basePath = SDL_GetBasePath();
|
||||||
SDL_snprintf(output, sizeof(output), "%s%s",
|
SDL_snprintf(output, sizeof(output), "%s%s",
|
||||||
SDL_GetBasePath(),
|
basePath,
|
||||||
"data.zip"
|
"data.zip"
|
||||||
);
|
);
|
||||||
|
SDL_free(basePath);
|
||||||
}
|
}
|
||||||
if (!PHYSFS_mount(output, NULL, 1))
|
if (!PHYSFS_mount(output, NULL, 1))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user