Changeset 3404


Ignore:
Timestamp:
03/04/04 17:07:43 (21 years ago)
Author:
raducci
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3400 r3404  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6 2004/03/04: Sebastian Raducci
     7 
     8   * msignal/MArrivalTimeCalc.cc
     9     - fixed a memory leak (the spline was not deleted...)
     10
    611 2004/03/04: Thomas Bretz
    712
  • trunk/MagicSoft/Mars/msignal/MArrivalTimeCalc.cc

    r3385 r3404  
    201201    const Double_t pedestal = ped.GetPedestal();
    202202    const Double_t halfMax = (maximum - pedestal)/2.;
    203     return (halfMax > pedestal) ? (Float_t ) spline->FindVal(halfMax,abMaximum,'l'): 0.0;
     203    Float_t time = (halfMax > pedestal) ? (Float_t ) spline->FindVal(halfMax,abMaximum,'l'): 0.0;
     204    delete spline;
     205    return time;
    204206   
    205207}
Note: See TracChangeset for help on using the changeset viewer.