Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67294 - trunk/boost/spirit/home/support/utree/detail
From: admin_at_[hidden]
Date: 2010-12-17 23:24:56


Author: wash
Date: 2010-12-17 23:24:54 EST (Fri, 17 Dec 2010)
New Revision: 67294
URL: http://svn.boost.org/trac/boost/changeset/67294

Log:
Re-added the call to free() to utree's dtor, added a call to initialize() to it's
default ctor (this cleans up a memory leak).

Text files modified:
   trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp
==============================================================================
--- trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp (original)
+++ trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp 2010-12-17 23:24:54 EST (Fri, 17 Dec 2010)
@@ -616,6 +616,7 @@
 
     inline utree::utree()
     {
+ s.initialize();
         set_type(type::nil_type);
     }
 
@@ -747,6 +748,7 @@
 
     inline utree::~utree()
     {
+ free();
     }
 
     inline utree& utree::operator=(utree const& other)


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