Boost logo

Boost-Commit :

From: thomas.klimpel_at_[hidden]
Date: 2008-08-14 14:53:12


Author: klimpel
Date: 2008-08-14 14:53:12 EDT (Thu, 14 Aug 2008)
New Revision: 48143
URL: http://svn.boost.org/trac/boost/changeset/48143

Log:
applied Bart Janssen's patch to avoid deallocation problems
Text files modified:
   sandbox/boost/numeric/bindings/umfpack/umfpack.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: sandbox/boost/numeric/bindings/umfpack/umfpack.hpp
==============================================================================
--- sandbox/boost/numeric/bindings/umfpack/umfpack.hpp (original)
+++ sandbox/boost/numeric/bindings/umfpack/umfpack.hpp 2008-08-14 14:53:12 EDT (Thu, 14 Aug 2008)
@@ -30,6 +30,7 @@
   template <typename T = double>
   struct symbolic_type : private noncopyable {
     void *ptr;
+ symbolic_type():ptr(0){}
     ~symbolic_type() {
       if (ptr)
         detail::free_symbolic (T(), 0, &ptr);
@@ -47,6 +48,7 @@
   template <typename T = double>
   struct numeric_type : private noncopyable {
     void *ptr;
+ numeric_type():ptr(0){}
     ~numeric_type() {
       if (ptr)
         detail::free_numeric (T(), 0, &ptr);


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