removed leak from postprocessing, moved delete task to earlier in threadpool and deleting threadpool

This commit is contained in:
Dhanya Maliakal
2017-05-12 10:32:16 +02:00
parent 0e9cf558b4
commit 15424149cd
3 changed files with 15 additions and 3 deletions

View File

@ -778,6 +778,14 @@ void postProcessing::initDataset(int r) {
cout << "done" << endl;
#endif
delete [] chPM;
delete [] mM;
if (ffcoeff != NULL) delete [] ffcoeff;
if (fferr != NULL) delete [] fferr;
if (angRad != NULL) delete [] angRad;
if (angOff != NULL) delete [] angOff;
if (angCenter != NULL) delete [] angCenter;
if (*correctionMask&(1<< ANGULAR_CONVERSION)) {
arraySize=getNumberOfAngularBins();