|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71903 - sandbox/block_ptr/boost
From: phil_at_[hidden]
Date: 2011-05-12 13:36:55
Author: pbouchard
Date: 2011-05-12 13:36:55 EDT (Thu, 12 May 2011)
New Revision: 71903
URL: http://svn.boost.org/trac/boost/changeset/71903
Log:
* Proper destruction of block_header
Text files modified:
sandbox/block_ptr/boost/block_ptr.hpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Modified: sandbox/block_ptr/boost/block_ptr.hpp
==============================================================================
--- sandbox/block_ptr/boost/block_ptr.hpp (original)
+++ sandbox/block_ptr/boost/block_ptr.hpp 2011-05-12 13:36:55 EDT (Thu, 12 May 2011)
@@ -91,7 +91,7 @@
{
includes_.push_back(& tag_);
}
-
+
/**
Release of a @c block_header with possible destruction of all its elements and other sets unified to it.
@@ -447,7 +447,10 @@
if (! pool::is_from(this))
if (ps_->release())
if (! d)
+ {
+ ps_->~block_header();
new (ps_) block_header();
+ }
else
delete ps_;
else
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk