Changeset 4174


Ignore:
Timestamp:
May 18, 2022, 6:26:46 AM (7 weeks ago)
Author:
Peter
Message:

Fix major memory leak introduced during the refactoring of the
Matrix class (refs #202). Has only been exposed in the trunk.

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Matrix.cc

    r4140 r4174  
    137137      std::copy(data_matrix[i].begin(), data_matrix[i].end(), begin_row(i));
    138138    }
     139  }
     140
     141
     142  Matrix::~Matrix(void)
     143  {
     144    detail::deallocate(m_);
    139145  }
    140146
  • trunk/yat/utility/Matrix.h

    r4141 r4174  
    139139
    140140    /**
     141       \brief Destructor
     142     */
     143    virtual ~Matrix(void);
     144
     145    /**
    141146       Constructor from a matrix expression. A matrix expression is
    142147       result \c operator+, \c operator-, and operator*, or
Note: See TracChangeset for help on using the changeset viewer.