mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-13 09:35:22 +01:00
no check for null when deleting
This commit is contained in:
@@ -74,8 +74,8 @@ DataProcessor::DataProcessor(int ind, detectorType dtype, Fifo* f,
|
||||
|
||||
|
||||
DataProcessor::~DataProcessor() {
|
||||
if (file != nullptr) delete file;
|
||||
if (tempBuffer != nullptr) delete [] tempBuffer;
|
||||
delete file;
|
||||
delete [] tempBuffer;
|
||||
ThreadObject::DestroyThread();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user