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 <[EMAIL PROTECTED]>
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;
}