Memory leak in BrTpcCluster

From: Peter H. L. Christiansen (pchristi@nbi.dk)
Date: Wed Aug 15 2001 - 09:44:03 EDT

  • Next message: Jens Ivar Jordre: "Re: BRAT-2-0-26"

    Hi
    
    I Fixed memory leak because of TList being created in Default constructer,
    so that when clusters were read in for files an extra TList was created
    for each cluster.
    
    Beware that if you have reduced data with the clusters in it 1 extra TList
    is created for each cluster read in!!!!
    
    This is because ROOT first calls the default constructor and then create
    the apropiate pointers and fills them. There is a ROOT flag to tell ROOT
    that you have created the stuff (Look in the manual) but that was not done
    here, since I disliked the constructors.
    
    I reduced 1000 TPC events with the new changes and saw that the changes
    did not break anything.
    
    Cheers
       Peter
    
    -- 
    :-) --------------------------------- )-:
    |Peter H L Christiansen aka PAN @ NBI	|
    |EMAIL  : pchristi@nbi.dk		|
    |OFFICE : Tb1 @ NBI			|
    |PHONE  : 353 25269			|
    |SNAIL  : Hans Tavsensgade 35, 4th	|
    |PHONE  : 35 349336			|
    :-D --------------------------------- \-:
    



    This archive was generated by hypermail 2b30 : Wed Aug 15 2001 - 09:45:11 EDT