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

index bc36718..27e6934 100644 (file)
@@ -98,10 +98,13 @@ AliAODPidHF::AliAODPidHF():
 //----------------------
 AliAODPidHF::~AliAODPidHF()
 {
-      // destructor
- //   if(fPLimit) delete fPLimit;
- //   if(fnSigma)  delete fnSigma;
- //   if(fPriors)  delete fPriors;
+  // destructor
+  delete [] fPLimit;
+  delete [] fnSigma;
+  delete [] fPriors;
+  delete [] fnSigmaCompat;
+  delete fPidCombined;
+
   delete fTPCResponse;
   for (Int_t ispecies=0;ispecies<AliPID::kSPECIES;++ispecies) {
     delete fPriorsH[ispecies];