mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 04:47:14 +02: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