You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2007/10/22 19:55:05 UTC

svn commit: r587173 - /incubator/stdcxx/branches/4.2.x/examples/manual/strstreambuf.cpp

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 <vi...@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;
 }