]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity fix (Laurent)
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Dec 2012 13:48:52 +0000 (13:48 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Dec 2012 13:48:52 +0000 (13:48 +0000)
PWG/muondep/AliAnalysisTriggerScalers.cxx

index 6642c8e9a2f14f1723d62a9abce667f7db092d9f..0a5e1b481e102f7c5fd07f07c66a487f6caf2ff8 100644 (file)
@@ -35,6 +35,7 @@
 #include "TDatime.h"
 #include "TError.h"
 #include "TGraph.h"
+#include "TGraphErrors.h"
 #include "TH2.h"
 #include "TObjArray.h"
 #include "TObjString.h"
@@ -792,10 +793,15 @@ TGraph* AliAnalysisTriggerScalers::MakeGraph(const std::vector<int>& vx,
     ey[i] = vey[i];
   }
   
-  TGraph* g = new TGraph(vx.size(),x,y);
+  TGraph* g = new TGraphErrors(vx.size(),x,y,ex,ey);
   
   TimeAxis(g);
   
+  delete[] x;
+  delete[] y;
+  delete[] ex;
+  delete[] ey;
+  
   return g;
 }