mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00
removed potential memory leak in readSettingsFile
This commit is contained in:
parent
1ec9d950d5
commit
449e4da892
@ -5529,6 +5529,11 @@ slsDetectorDefs::sls_detector_module* slsDetector::readSettingsFile(const std::s
|
|||||||
default:
|
default:
|
||||||
FILE_LOG(logERROR) << "Unknown detector type - unknown format for settings file";
|
FILE_LOG(logERROR) << "Unknown detector type - unknown format for settings file";
|
||||||
setErrorMask((getErrorMask())|(OTHER_ERROR_CODE));
|
setErrorMask((getErrorMask())|(OTHER_ERROR_CODE));
|
||||||
|
if (modCreated){
|
||||||
|
if (myMod){
|
||||||
|
deleteModule(myMod);
|
||||||
|
}
|
||||||
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user