]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerTRU.cxx
Adding a reminder for coders
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerTRU.cxx
index 3d542d484e9f07db9785e6dcc90c6497e695e984..db1d829b9f50823663708606a9feef4f9a151e18 100644 (file)
@@ -227,6 +227,13 @@ Int_t AliEMCALTriggerTRU::L0()
                if (!nPeaks)
                {
                        ZeroRegion();
+
+                       for (Int_t x = 0; x < xsize; x++)
+                       {
+                         delete [] peaks[x];
+                       }
+                       delete [] peaks;
+
                        continue;
                }
                
@@ -278,6 +285,8 @@ Int_t AliEMCALTriggerTRU::L0()
                                }
                        }
                        
+                       delete [] idx;
+
                        if ( !foundPeak ) 
                        {
                                fPatches->RemoveAt( j );