From: ehofman Date: Mon, 20 Oct 2003 19:38:27 +0000 (+0000) Subject: And don't forget to free up the used memory. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19815c3bcef941d43a57f43cddf13f272f229093;p=simgear.git And don't forget to free up the used memory. --- 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'; } };