Skip to content

Commit

Permalink
fix coverity 1271720,21 (destructor, leak), re #11328
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Mar 12, 2015
1 parent eeb168c commit 590375b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Code/Mantid/Framework/MDEvents/src/AffineMatrixParameter.cpp
Expand Up @@ -28,11 +28,12 @@ AffineMatrixParameter::AffineMatrixParameter(size_t outD, size_t inD)
//----------------------------------------------------------------------------------------------
/// Destructor
AffineMatrixParameter::~AffineMatrixParameter() {
if (m_rawMatrix) {
delete[] * m_rawMatrix;
delete[] m_rawMatrix;
}
// delete array of pointers to rows
delete[] m_rawMatrix;
m_rawMatrix = NULL;

// delete large mem block holding the matrix
delete[] m_rawMem;
m_rawMem = NULL;
}

Expand Down

0 comments on commit 590375b

Please sign in to comment.