Author: sebor
Date: Thu Oct 11 10:24:06 2007
New Revision: 583889

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

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

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

Modified: incubator/stdcxx/trunk/examples/manual/strstream.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/examples/manual/strstream.cpp?rev=583889&r1=583888&r2=583889&view=diff
==============================================================================
--- incubator/stdcxx/trunk/examples/manual/strstream.cpp (original)
+++ incubator/stdcxx/trunk/examples/manual/strstream.cpp Thu Oct 11 10:24:06 
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