Author: faridz
Date: Tue Oct 30 07:32:42 2007
New Revision: 590083

URL: http://svn.apache.org/viewvc?rev=590083&view=rev
Log:
2007-10-30 Farid Zaripov <[EMAIL PROTECTED]>

        Merged r587173 from branches/4.2.x with a fix for STDCXX-579
        * strstreambuf.cpp (main): Unfreeze streambuf so destructor
        will deallocate memory.

Modified:
    incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp

Modified: incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp?rev=590083&r1=590082&r2=590083&view=diff
==============================================================================
--- incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp (original)
+++ incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp Tue Oct 30 07:32:42 
2007
@@ -86,5 +86,8 @@
     // output the contents of the streambuf object associated with out
     std::cout << out.rdbuf ()->str ();
 
+    // unfreeze the streambuf so it cleans up its allocated memory
+    out.rdbuf ()->freeze (false);
+
     return 0;
 }


Reply via email to