mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 06:20:16 -04:00
fix free static buffer (#162)
This commit is contained in:
parent
c63beef346
commit
afee7a5620
@ -642,10 +642,7 @@ static char *GetAutoloadDir(const char *iwadname)
|
||||
|
||||
if (autoload_path == NULL)
|
||||
{
|
||||
char *prefdir;
|
||||
prefdir = D_DoomPrefDir();
|
||||
autoload_path = M_StringJoin(prefdir, DIR_SEPARATOR_S, "autoload", NULL);
|
||||
(free)(prefdir);
|
||||
autoload_path = M_StringJoin(D_DoomPrefDir(), DIR_SEPARATOR_S, "autoload", NULL);
|
||||
}
|
||||
|
||||
M_MakeDirectory(autoload_path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user