Fix for memory leaks in digits TClonesArrays (Matevz)
[u/mrichter/AliRoot.git] / VZERO / AliVZEROTrending.cxx
index cf822e5..fadd83c 100644 (file)
@@ -61,8 +61,8 @@ AliVZEROTrending::AliVZEROTrending(const AliVZEROTrending &trend) :
 \r
 //_____________________________________________________________________________\r
 AliVZEROTrending::~AliVZEROTrending(){\r
-       delete [] fGraphs;\r
-       delete fMultiGraphs;\r
+  for (Int_t i=0; i<8; ++i) delete fGraphs[i];\r
+  delete fMultiGraphs;\r
 }\r
 // -----------------------------------------------------------------                   \r
 void AliVZEROTrending::AddEntry(Double_t * data, UInt_t time)\r