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

    r2267 r2270  
    152152        bool activateFieldWorkflow_done_=false ; 
    153153      private: 
    154         CGenericAlgorithmTransformation* transformationAlgorithm_ = nullptr ; 
    155       public: 
    156         void setTransformationAlgorithm(CGenericAlgorithmTransformation* transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
    157         CGenericAlgorithmTransformation* getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
     154        shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm_ = nullptr ; 
     155      public: 
     156        void setTransformationAlgorithm(shared_ptr<CGenericAlgorithmTransformation> transformationAlgorithm) { transformationAlgorithm_=transformationAlgorithm ;} 
     157        shared_ptr<CGenericAlgorithmTransformation> getTransformationAlgorithm(void) { return transformationAlgorithm_ ;}    
    158158      private: 
    159159        CTransformationPaths transformationPaths_ ; 
Note: See TracChangeset for help on using the changeset viewer.