From 13fa3520a60471c382f814e9b494dff05953d2a7 Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Tue, 3 Jul 2012 12:47:35 +0000 Subject: [PATCH] Added ifbadchannelmask, else error while compiling in verbose git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@202 951219d9-93cf-4727-9268-0efd64621fa3 --- slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp b/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp index 9bb7e9954..42dec4c1a 100644 --- a/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp +++ b/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp @@ -417,11 +417,11 @@ int postProcessing::fillBadChannelMask() { #ifdef VERBOSE cout << "deleting bad channel mask beacuse no bad channel correction is selected" << endl; #endif - delete [] badChannelMask; + if (badChannelMask) delete [] badChannelMask; badChannelMask=NULL; } } - + #ifdef VERBOSE cout << "number of bad channels is " << nbad << endl; #endif