Changeset 48


Ignore:
Timestamp:
Mar 2, 2004, 4:08:45 PM (18 years ago)
Author:
Jari Häkkinen
Message:

Fixed erroneous freeing of memory in copy constructor.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matrix.cc

    r42 r48  
    3535  matrix::matrix(const matrix& other)
    3636  {
    37     gsl_matrix_free(m_);
    3837    m_ = other.gsl_matrix_copy();
    3938  }
  • trunk/src/vector.cc

    r42 r48  
    3131  vector::vector(const vector& other)
    3232  {
    33     gsl_vector_free(v_);
    3433    v_ = other.gsl_vector_copy();
    3534  }
Note: See TracChangeset for help on using the changeset viewer.