$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r61403 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2010-04-19 07:37:56
Author: xushiwei
Date: 2010-04-19 07:37:56 EDT (Mon, 19 Apr 2010)
New Revision: 61403
URL: http://svn.boost.org/trac/boost/changeset/61403
Log:
pools bug fix: pools.clear;
Text files modified: 
   sandbox/memory/boost/memory/pools.hpp |     6 ++++++                                  
   1 files changed, 6 insertions(+), 0 deletions(-)
Modified: sandbox/memory/boost/memory/pools.hpp
==============================================================================
--- sandbox/memory/boost/memory/pools.hpp	(original)
+++ sandbox/memory/boost/memory/pools.hpp	2010-04-19 07:37:56 EDT (Mon, 19 Apr 2010)
@@ -127,13 +127,19 @@
                 const size_type index = (sizeof(pool_type) - 1) >> ALIGN_BITS1;
                 m_pools[index] = &m_poolAlloc;
         }
+
         ~pools_alloc()
         {
+		const size_type index = (sizeof(pool_type) - 1) >> ALIGN_BITS1;
+		m_pools[index] = NULL;
+
                 for (size_type i = 0; i < NPOOL; ++i)
                 {
                         if (m_pools[i])
                                 m_pools[i]->clear();
                 }
+
+		m_poolAlloc.clear();
         }
 
         pool_type& BOOST_MEMORY_CALL get_pool(size_type cb)