stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r587173 - /incubator/stdcxx/branches/4.2.x/examples/manual/strstreambuf.cpp
Date Mon, 22 Oct 2007 17:55:05 GMT
Author: faridz
Date: Mon Oct 22 10:55:02 2007
New Revision: 587173

URL: http://svn.apache.org/viewvc?rev=587173&view=rev
Log:
2007-10-22 Travis Vitek <vitek@roguewave.com>

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

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

Modified: incubator/stdcxx/branches/4.2.x/examples/manual/strstreambuf.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/examples/manual/strstreambuf.cpp?rev=587173&r1=587172&r2=587173&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/examples/manual/strstreambuf.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/examples/manual/strstreambuf.cpp Mon Oct 22 10:55:02 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;
 }



Mime
View raw message