Show
Ignore:
Timestamp:
08/13/09 15:58:32 (15 years ago)
Author:
vbarta
Message:

using shared_ptr in UI (optionally so far; loading & saving Array<T *> still works but should be phased out); testsuite run leaks down from 8822 to 480 bytes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/datasources.cpp

    r477 r527  
    5757 
    5858void ArxDS::from_setting ( const Setting &set ) { 
    59         RV *yrv = UI::build<RV> ( set, "y" , UI::compulsory ); 
    60         RV *urv = UI::build<RV> ( set, "u" , UI::compulsory ); 
    61         RV *rrv = UI::build<RV> ( set, "rgr" , UI::compulsory ); 
     59        shared_ptr<RV> yrv = UI::build<RV> ( set, "y" , UI::compulsory ); 
     60        shared_ptr<RV> urv = UI::build<RV> ( set, "u" , UI::compulsory ); 
     61        shared_ptr<RV> rrv = UI::build<RV> ( set, "rgr" , UI::compulsory ); 
    6262 
    6363        mat Th; 
     
    112112 
    113113void ITppFileDS::from_setting ( const Setting &set ) { 
    114         RV* rvtmp = UI::build<RV> ( set, "rv" , UI::compulsory ); 
     114        shared_ptr<RV> rvtmp = UI::build<RV> ( set, "rv" , UI::compulsory ); 
    115115 
    116116        it_file it ( set["filename"] ); 
     
    131131        ut.set_length ( 0 ); 
    132132 
     133#if 0 
    133134        RV* rvtmp = UI::build<RV> ( set["IM"], "rvu", UI::compulsory ); 
    134135        //set_drv(rvtmp); 
     136#endif 
    135137}