From b0112bc93423c4cc06d41a03c6f5b175ba8e2797 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 4 Apr 2013 12:25:35 +0000 Subject: [PATCH] Put DataArray destructor protected. --- src/MEDCoupling_Swig/MEDCouplingCommon.i | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MEDCoupling_Swig/MEDCouplingCommon.i b/src/MEDCoupling_Swig/MEDCouplingCommon.i index 276d13b83..5bac101bd 100644 --- a/src/MEDCoupling_Swig/MEDCouplingCommon.i +++ b/src/MEDCoupling_Swig/MEDCouplingCommon.i @@ -374,6 +374,7 @@ using namespace INTERP_KERNEL; %newobject ParaMEDMEM::MEDCouplingMultiFields::deepCpy; %newobject ParaMEDMEM::MEDCouplingFieldOverTime::New; +%feature("unref") DataArray "$this->decrRef();" %feature("unref") DataArrayDouble "$this->decrRef();" %feature("unref") MEDCouplingPointSet "$this->decrRef();" %feature("unref") MEDCouplingMesh "$this->decrRef();" -- 2.39.2