Adding missing deletion of array (Jacek)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jun 2008 14:20:16 +0000 (14:20 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jun 2008 14:20:16 +0000 (14:20 +0000)
TPC/AliTPCcalibTracks.cxx

index 95f798c..0f61b56 100644 (file)
@@ -533,8 +533,10 @@ AliTPCcalibTracks::~AliTPCcalibTracks() {
   delete fHclusterPerPadrowRaw;
   if (fCalPadClusterPerPad)    delete fCalPadClusterPerPad;
   if (fCalPadClusterPerPadRaw) delete fCalPadClusterPerPadRaw;
-  fcalPadRegionChargeVsDriftlength->Delete();
-  delete fcalPadRegionChargeVsDriftlength;
+  if(fcalPadRegionChargeVsDriftlength) {
+     fcalPadRegionChargeVsDriftlength->Delete();
+     delete fcalPadRegionChargeVsDriftlength;
+  }
 }