mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-27 06:54:23 -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)
|
if (autoload_path == NULL)
|
||||||
{
|
{
|
||||||
char *prefdir;
|
autoload_path = M_StringJoin(D_DoomPrefDir(), DIR_SEPARATOR_S, "autoload", NULL);
|
||||||
prefdir = D_DoomPrefDir();
|
|
||||||
autoload_path = M_StringJoin(prefdir, DIR_SEPARATOR_S, "autoload", NULL);
|
|
||||||
(free)(prefdir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
M_MakeDirectory(autoload_path);
|
M_MakeDirectory(autoload_path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user