From 19815c3bcef941d43a57f43cddf13f272f229093 Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 20 Oct 2003 19:38:27 +0000 Subject: [PATCH] And don't forget to free up the used memory. --- simgear/compatibility/sstream | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/compatibility/sstream b/simgear/compatibility/sstream index 2eb05195..d531aac3 100644 --- a/simgear/compatibility/sstream +++ b/simgear/compatibility/sstream @@ -10,6 +10,7 @@ namespace std { class ostringstream : public ostrstream { public: + ~ostringstream() { delete ostrstream::str(); } std::string str() { return string(ostrstream::str()) + '\0'; } }; -- 2.39.5