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/30 15:32:44 UTC
svn commit: r590083 -
/incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp
Author: faridz
Date: Tue Oct 30 07:32:42 2007
New Revision: 590083
URL: http://svn.apache.org/viewvc?rev=590083&view=rev
Log:
2007-10-30 Farid Zaripov <fa...@epam.com>
Merged r587173 from branches/4.2.x with a fix for STDCXX-579
* strstreambuf.cpp (main): Unfreeze streambuf so destructor
will deallocate memory.
Modified:
incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp
Modified: incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp?rev=590083&r1=590082&r2=590083&view=diff
==============================================================================
--- incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp (original)
+++ incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp Tue Oct 30 07:32:42 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;
}