stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r590083 - /incubator/stdcxx/trunk/examples/manual/strstreambuf.cpp
Date Tue, 30 Oct 2007 14:32:44 GMT
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 <farid_zaripov@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;
 }



Mime
View raw message