Changeset 4378


Ignore:
Timestamp:
07/14/04 19:18:04 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4376 r4378  
    4040    - Default ID is 0 which is also default in MExtractedSignalBlindPix
    4141    - for current code, nothing has thus changed so far...
     42
     43
     44  * msignal/MExtractAmplitudeSpline.cc
     45    - fixed a bug causing a segmentation violation in the destructor
     46      (array dimension was not respected correctly)
    4247
    4348
  • trunk/MagicSoft/Mars/msignal/MExtractAmplitudeSpline.cc

    r4344 r4378  
    8181 
    8282  if (fHiGainSignal)
    83     delete fHiGainSignal;
     83    delete [] fHiGainSignal;
    8484  if (fLoGainSignal)
    85     delete fLoGainSignal;
     85    delete [] fLoGainSignal;
    8686  if (fHiGainFirstDeriv)
    87     delete fHiGainFirstDeriv;
     87    delete [] fHiGainFirstDeriv;
    8888  if (fLoGainFirstDeriv)
    89     delete fLoGainFirstDeriv;
     89    delete [] fLoGainFirstDeriv;
    9090  if (fHiGainSecondDeriv)
    91     delete fHiGainSecondDeriv;
     91    delete [] fHiGainSecondDeriv;
    9292  if (fLoGainSecondDeriv)
    93     delete fLoGainSecondDeriv;
     93    delete [] fLoGainSecondDeriv;
    9494 
    9595}
     
    152152
    153153  if (fHiGainSignal)
    154     delete fHiGainSignal;
     154    delete [] fHiGainSignal;
     155  if (fHiGainFirstDeriv)
     156    delete [] fHiGainFirstDeriv;
     157  if (fHiGainSecondDeriv)
     158    delete [] fHiGainSecondDeriv;
    155159  if (fLoGainSignal)
    156     delete fLoGainSignal;
    157   if (fHiGainFirstDeriv)
    158     delete fHiGainFirstDeriv;
     160    delete [] fLoGainSignal;
    159161  if (fLoGainFirstDeriv)
    160     delete fLoGainFirstDeriv;
    161   if (fHiGainSecondDeriv)
    162     delete fHiGainSecondDeriv;
     162    delete [] fLoGainFirstDeriv;
    163163  if (fLoGainSecondDeriv)
    164     delete fLoGainSecondDeriv;
     164    delete [] fLoGainSecondDeriv;
    165165 
    166166  Int_t range = fHiGainLast - fHiGainFirst + 1 + fHiLoLast;
     
    237237        }
    238238     
    239       range++;
    240239      count++;
    241240     
Note: See TracChangeset for help on using the changeset viewer.