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/transformation/grid_transformation_factory_impl.hpp

    r1985 r2270  
    3333  virtual ~CGridTransformationFactory() {} 
    3434 
    35   static CGenericAlgorithmTransformation* createTransformation(ETranformationType transType, bool isSource, 
     35  static shared_ptr<CGenericAlgorithmTransformation> createTransformation(ETranformationType transType, bool isSource, 
    3636                                                               CGrid* gridDst, CGrid* gridSrc, 
    3737                                                               CTransformation<T>* transformation, 
     
    4545 
    4646public: 
    47   typedef CGenericAlgorithmTransformation* (*CreateTransformationCallBack)(bool isSource, CGrid* gridDst, CGrid* gridSrc, 
     47  typedef shared_ptr<CGenericAlgorithmTransformation> (*CreateTransformationCallBack)(bool isSource, CGrid* gridDst, CGrid* gridSrc, 
    4848                                                                           CTransformation<T>* transformation, 
    4949                                                                           int elementPositionInGrid, 
     
    6868 
    6969template<typename T> 
    70 CGenericAlgorithmTransformation* CGridTransformationFactory<T>::createTransformation(ETranformationType transType, bool isSource, 
     70shared_ptr<CGenericAlgorithmTransformation> CGridTransformationFactory<T>::createTransformation(ETranformationType transType, bool isSource, 
    7171                                                                               CGrid* gridDst, CGrid* gridSrc, 
    7272                                                                               CTransformation<T>* transformation, 
Note: See TracChangeset for help on using the changeset viewer.