Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50996 - branches/release/boost/interprocess/smart_ptr/detail
From: igaztanaga_at_[hidden]
Date: 2009-02-03 13:12:03


Author: igaztanaga
Date: 2009-02-03 13:12:02 EST (Tue, 03 Feb 2009)
New Revision: 50996
URL: http://svn.boost.org/trac/boost/changeset/50996

Log:
Fixed bug that releases memory before calling the destructor
Text files modified:
   branches/release/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: branches/release/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp
==============================================================================
--- branches/release/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp (original)
+++ branches/release/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp 2009-02-03 13:12:02 EST (Tue, 03 Feb 2009)
@@ -84,7 +84,8 @@
       this_pointer this_ptr (this);
       //Do it now!
       scoped_ptr<this_type,
- scoped_ptr_dealloc_functor<this_allocator> >(this_ptr, a_copy);
+ scoped_ptr_dealloc_functor<this_allocator> >
+ deallocator(this_ptr, a_copy);
       typedef typename this_allocator::value_type value_type;
       detail::get_pointer(this_ptr)->~value_type();
    }


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