commit 8442508444cb660b5e83b888d153985f78dc0954
Author: mfrancis95 <mikefrancis95@gmail.com>
AuthorDate: Thu Nov 8 13:59:48 2018 -0500
Commit: mfrancis95 <mikefrancis95@gmail.com>
CommitDate: Thu Nov 8 13:59:48 2018 -0500
Fix memory leak related to Steam directories
---
src/d_iwad.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/d_iwad.c b/src/d_iwad.c
index 8ae0faac..4a88a48e 100644
--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -677,6 +677,7 @@ static void AddSteamDirs(void)
AddIWADPath(steampath, "/Hexen/base");
AddIWADPath(steampath, "/Hexen Deathkings of the Dark Citadel/base");
AddIWADPath(steampath, "/Strife");
+ free(steampath);
}
#endif // __MACOSX__
#endif // !_WIN32