slsReceiver: avoid potential memory leak around Implementation::generalData

This commit is contained in:
Alejandro Homs Puron
2020-12-04 13:20:50 +01:00
committed by operator for beamline
parent 64de9f3ad0
commit f4be0b8efa
2 changed files with 4 additions and 1 deletions

View File

@ -121,6 +121,9 @@ void Implementation::setDetectorType(const detectorType d) {
std::to_string(static_cast<int>(d)));
}
delete generalData;
generalData = nullptr;
// set detector specific variables
switch (myDetectorType) {
case GOTTHARD: