stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r587911 - /incubator/stdcxx/branches/4.2.x/examples/manual/strstream.cpp
Date Wed, 24 Oct 2007 15:46:50 GMT
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 <vitek@roguewave.com>

	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;
 



Mime
View raw message