Delete AliTOFHeader object
[u/mrichter/AliRoot.git] / TOF / AliTOFT0maker.cxx
index c82fbcd054bd96ab04e29c3c3c917621fddc8944..235918b1b902586008121b9f9349993fd6241f17 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++)