mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed memory leaks in testfilesystem.c (thanks, Nitz!).
Fixes Bugzilla #2991.
This commit is contained in:
parent
7619ad3430
commit
8bfc622b18
@ -32,7 +32,7 @@ main(int argc, char *argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_Log("base path: '%s'\n", SDL_GetBasePath());
|
SDL_Log("base path: '%s'\n", base_path);
|
||||||
SDL_free(base_path);
|
SDL_free(base_path);
|
||||||
|
|
||||||
char *pref_path = SDL_GetPrefPath("libsdl", "testfilesystem");
|
char *pref_path = SDL_GetPrefPath("libsdl", "testfilesystem");
|
||||||
@ -41,12 +41,9 @@ main(int argc, char *argv[])
|
|||||||
SDL_GetError());
|
SDL_GetError());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
SDL_Log("pref path: '%s'\n", SDL_GetPrefPath("libsdl", "testfilesystem"));
|
SDL_Log("pref path: '%s'\n", pref_path);
|
||||||
SDL_free(pref_path);
|
SDL_free(pref_path);
|
||||||
|
|
||||||
SDL_Log("base path: '%s'\n", SDL_GetBasePath());
|
|
||||||
SDL_Log("pref path: '%s'\n", SDL_GetPrefPath("libsdl", "testfilesystem"));
|
|
||||||
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user