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/domain.hpp

    r2267 r2270  
    117117 
    118118      private: 
    119         CGenericAlgorithmTransformation* transformationAlgorithm_ = nullptr ; 
    120       public: 
    121         void setTransformationAlgorithm(CGenericAlgorithmTransformation* transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
    122         CGenericAlgorithmTransformation* getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
     119        shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm_ = nullptr ; 
     120      public: 
     121        void setTransformationAlgorithm(shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
     122        shared_ptr<CGenericAlgorithmTransformation> getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
    123123      private: 
    124124        CTransformationPaths transformationPaths_ ; 
Note: See TracChangeset for help on using the changeset viewer.