From c8e01f9f91ca426fabb04af61372a3b51d69b017 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 6 Apr 2009 17:18:29 +0000 Subject: [PATCH] - Fixed: The UDMF textmap readbuffer was never freed. SVN r1523 (trunk) --- docs/rh-log.txt | 5 ++++- src/p_udmf.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 20053ca44..3f12a453c 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,7 @@ -April 4, 2009 +April 6, 2009 (Changes by Graf Zahl) +- Fixed: The UDMF textmap readbuffer was never freed. + +April 4, 2009 - Fixed: GetPlayerInput() died if you tried to get the input of the activator and the activator was the world. diff --git a/src/p_udmf.cpp b/src/p_udmf.cpp index 1e5403392..7a82e6564 100644 --- a/src/p_udmf.cpp +++ b/src/p_udmf.cpp @@ -1107,6 +1107,7 @@ struct UDMFParser map->Read(ML_TEXTMAP, buffer); sc.OpenMem(Wads.GetLumpFullName(map->lumpnum), buffer, map->Size(ML_TEXTMAP)); + delete [] buffer; sc.SetCMode(true); if (sc.CheckString("namespace")) { @@ -1232,7 +1233,6 @@ struct UDMFParser // Create the real linedefs and decompress the sidedefs ProcessLineDefs(); - } };