in between

This commit is contained in:
Dhanya Maliakal 2016-08-15 16:59:30 +02:00
parent 3fbcbd5153
commit 46b23dba24

View File

@ -791,7 +791,11 @@ int UDPStandardImplementation::setDetectorType(const detectorType d){
numberofJobsPerBuffer = -1;
setupFifoStructure();
//allocate for latest data (frame copy for gui)
//allocate for latest data (frame copy for gui), free variables
for(int i=0; i<MAX_NUMBER_OF_WRITER_THREADS; i++){
if(latestData[i]) {delete[] latestData; latestData = NULL;}
guiData[i] = NULL;
}
latestData = new char[frameSize];
//updates File Header