shithub: choc

Download patch

ref: 8442508444cb660b5e83b888d153985f78dc0954
parent: 08bb28ed910263d8b5d6d98e46411ae762164518
author: mfrancis95 <mikefrancis95@gmail.com>
date: Thu Nov 8 08:59:48 EST 2018

Fix memory leak related to Steam directories

--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -677,6 +677,7 @@
     AddIWADPath(steampath, "/Hexen/base");
     AddIWADPath(steampath, "/Hexen Deathkings of the Dark Citadel/base");
     AddIWADPath(steampath, "/Strife");
+    free(steampath);
 }
 #endif // __MACOSX__
 #endif // !_WIN32