stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r583889 - /incubator/stdcxx/trunk/examples/manual/strstream.cpp
Date Thu, 11 Oct 2007 17:24:07 GMT
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 <vitek@roguewave.com>

	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;
 



Mime
View raw message