Skip to content
Permalink
Browse files

Merge pull request #1201 from TsarFox/master

Use SDL_free with SDL pointers.
  • Loading branch information...
fragglet committed Oct 8, 2019
2 parents ee9fc21 + 756d1ea commit d1c94b434d4a72b0ebc0d2cecaff33b2994b66ca
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/m_config.c
@@ -2185,11 +2185,14 @@ static char *GetDefaultConfigDir(void)
// Vanilla Doom and save in the current directory.

char *result;
char *copy;

result = SDL_GetPrefPath("", PACKAGE_TARNAME);
if (result != NULL)
{
return result;
copy = M_StringDuplicate(result);
SDL_free(result);
return copy;
}
#endif /* #ifndef _WIN32 */
return M_StringDuplicate("");

0 comments on commit d1c94b4

Please sign in to comment.
You can’t perform that action at this time.