Delete AliTOFHeader object
authordecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Jan 2012 16:06:15 +0000 (16:06 +0000)
committerdecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Jan 2012 16:06:15 +0000 (16:06 +0000)
TOF/AliTOFT0maker.cxx

index c82fbcd..235918b 100644 (file)
@@ -522,6 +522,8 @@ void     AliTOFT0maker::WriteInESD(AliESDEvent *esd){
   
     esd->SetTOFHeader(tofHeader);
 
+    delete tofHeader;
+
     AliDebug(1,Form("resTOF=%f T0spread=%f t0Gen=%f t0resGen=%f",fTimeResolution,fT0width,t0Gen,t0ResGen));
     AliDebug(1,Form("%d ",nt0));
     for (Int_t ii=0; ii<nt0; ii++)