Fixing a (small) memory leak
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 24 Sep 2011 19:59:12 +0000 (19:59 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 24 Sep 2011 19:59:12 +0000 (19:59 +0000)
MUON/AliMUONTrackerQADataMakerRec.cxx

index 3fb3120..974b47c 100644 (file)
@@ -708,6 +708,7 @@ void AliMUONTrackerQADataMakerRec::FillReadoutStatus(AliMUONLogger& log, AliMUON
     TPaveText* text = new TPaveText(0,0,0.99,0.99,"NDC");
     text->AddText("FATAL : 0 event seen ? That's NOT normal...");
     text->SetFillColor(2); // red = FATAL
+    hrostatus->GetListOfFunctions()->Delete();
     hrostatus->GetListOfFunctions()->Add(text);
     return;
   }