mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
no check for null when deleting
This commit is contained in:
parent
81e858ea4d
commit
29be6f3b34
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user