Skip to content

Commit

Permalink
Solving leak memory for SANSDiagnostics.cpp
Browse files Browse the repository at this point in the history
Release the memory allocated for listing the spectra related to the detectors IDs.
RE #6157
  • Loading branch information
gesnerpassos committed Nov 26, 2012
1 parent 4d5e023 commit 0da7422
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ namespace MantidQt
min_spec_index = aux;
}
}

delete map; // release memory allocated by getWorkspaceIndexToDetectorIDMap.
if ( min_spec_index == ULONG_MAX || max_spec_index == 0){
g_log.error()<<"Error : The instrument does not have data associated to the RectangularDetector " << rectDet->getDetectorName().toStdString()<<std::endl;
}
Expand Down

0 comments on commit 0da7422

Please sign in to comment.