]> git.mxchange.org Git - simgear.git/commitdiff
And don't forget to free up the used memory.
authorehofman <ehofman>
Mon, 20 Oct 2003 19:38:27 +0000 (19:38 +0000)
committerehofman <ehofman>
Mon, 20 Oct 2003 19:38:27 +0000 (19:38 +0000)
simgear/compatibility/sstream

index 2eb051958a77a9ffbbc24bdfe6d16e1f6c854873..d531aac336eb09b6298ad86083899801f5a23259 100644 (file)
@@ -10,6 +10,7 @@ namespace std {
 
    class ostringstream : public ostrstream {
    public:
+      ~ostringstream() { delete ostrstream::str(); }
       std::string str() { return string(ostrstream::str()) + '\0'; }
    };