Proper destructor implementation
authorzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Jul 2013 11:55:04 +0000 (11:55 +0000)
committerzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Jul 2013 11:55:04 +0000 (11:55 +0000)
PWGHF/vertexingHF/AliAODPidHF.cxx

index 27e6934..d987bd0 100644 (file)
@@ -99,10 +99,10 @@ AliAODPidHF::AliAODPidHF():
 AliAODPidHF::~AliAODPidHF()
 {
   // destructor
-  delete [] fPLimit;
-  delete [] fnSigma;
-  delete [] fPriors;
-  delete [] fnSigmaCompat;
+  if(fPLimit) delete [] fPLimit;
+  if(fnSigma) delete [] fnSigma;
+  if(fPriors) delete [] fPriors;
+  if(fnSigmaCompat) delete [] fnSigmaCompat;
   delete fPidCombined;
 
   delete fTPCResponse;