Ignore:
Timestamp:
12/07/21 12:07:33 (3 years ago)
Author:
ymipsl
Message:

Tracking memory leak :
Tranformations and algorithms are now managed with shared_ptr.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/scalar.hpp

    r2267 r2270  
    126126        bool activateFieldWorkflow_done_=false ; 
    127127      private: 
    128         CGenericAlgorithmTransformation* transformationAlgorithm_ = nullptr ; 
     128        shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm_ = nullptr ; 
    129129      public: 
    130         void setTransformationAlgorithm(CGenericAlgorithmTransformation* transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
    131         CGenericAlgorithmTransformation* getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
     130        void setTransformationAlgorithm(shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
     131        shared_ptr<CGenericAlgorithmTransformation> getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
    132132      private: 
    133133        CTransformationPaths transformationPaths_ ; 
Note: See TracChangeset for help on using the changeset viewer.