Array of bad cells deleting is relocated to a proper place
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 10 Apr 2011 11:35:32 +0000 (11:35 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 10 Apr 2011 11:35:32 +0000 (11:35 +0000)
PWG4/UserTasks/CaloCellQA/AliAnalysisTaskCaloCellsQA.cxx

index 525285d..df6b687 100644 (file)
@@ -158,9 +158,10 @@ void AliAnalysisTaskCaloCellsQA::SetBadCells(Int_t badcells[], Int_t nbad)
   // Set absId numbers for bad cells;
   // clusters which contain a bad cell will be rejected.
 
+  if (fBadCells) delete [] fBadCells;
+
   // switch off bad cells, if asked
   if (nbad <= 0) {
-    if (fBadCells) delete [] fBadCells;
     fNBad = 0;
     return;
   }