Author: faridz
Date: Wed Oct 24 08:46:48 2007
New Revision: 587911

URL: http://svn.apache.org/viewvc?rev=587911&view=rev
Log:
2007-10-24 Travis Vitek <[EMAIL PROTECTED]>

        STDCXX-580
        * strstream.cpp (main): Unfreeze streambuf so destructor
        will deallocate memory.

Modified:
    incubator/stdcxx/branches/4.2.x/examples/manual/strstream.cpp

Modified: incubator/stdcxx/branches/4.2.x/examples/manual/strstream.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/examples/manual/strstream.cpp?rev=587911&r1=587910&r2=587911&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/examples/manual/strstream.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/examples/manual/strstream.cpp Wed Oct 24 
08:46:48 2007
@@ -49,6 +49,9 @@
     std::cout << "Full text, " << inout.pcount ()
               << " characters:\n" << inout.str ();
 
+    // unfreeze the streambuf so it cleans up its allocated memory 
+    inout.freeze (false);
+
     // keep track of the number of characters extracted by getline
     int gcount = 0;
 


Reply via email to