mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00: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:
|
||||
FILE_LOG(logERROR) << "Unknown detector type - unknown format for settings file";
|
||||
setErrorMask((getErrorMask())|(OTHER_ERROR_CODE));
|
||||
if (modCreated){
|
||||
if (myMod){
|
||||
deleteModule(myMod);
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user