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(); - } };