Technical fix for bug #58138: VZERO breaks in AliVZEROTrending::~AliVZEROTrending()
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Nov 2009 21:27:14 +0000 (21:27 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Nov 2009 21:27:14 +0000 (21:27 +0000)
VZERO/AliVZEROTrending.cxx

index cf822e5..8ec559c 100644 (file)
@@ -61,8 +61,11 @@ AliVZEROTrending::AliVZEROTrending(const AliVZEROTrending &trend) :
 \r
 //_____________________________________________________________________________\r
 AliVZEROTrending::~AliVZEROTrending(){\r
-       delete [] fGraphs;\r
-       delete fMultiGraphs;\r
+  if (fGraphs) {\r
+    for (Int_t i=0; i<8; ++i) delete fGraphs[i];\r
+    delete [] fGraphs;\r
+  }\r
+  delete fMultiGraphs;\r
 }\r
 // -----------------------------------------------------------------                   \r
 void AliVZEROTrending::AddEntry(Double_t * data, UInt_t time)\r