diff --git a/src/OpenMesh/Core/Mesh/CirculatorsT.hh b/src/OpenMesh/Core/Mesh/CirculatorsT.hh index 97b90732..3e559235 100644 --- a/src/OpenMesh/Core/Mesh/CirculatorsT.hh +++ b/src/OpenMesh/Core/Mesh/CirculatorsT.hh @@ -321,7 +321,7 @@ class GenericCirculatorT : protected GenericCirculatorBaseTheh_.is_valid()); value_type res = GenericCirculatorT_TraitsT::toHandle(this->mesh_, this->heh_); assert(res.is_valid()); - return res; + return make_smart(res, this->mesh_); #else return make_smart(GenericCirculatorT_TraitsT::toHandle(this->mesh_, this->heh_), this->mesh_); #endif @@ -510,7 +510,7 @@ class GenericCirculatorT_DEPRECATED : protected GenericCirculatorBaseTheh_.is_valid()); value_type res = (self->GenericCirculatorT_DEPRECATED_TraitsT::toHandle(this->mesh_); assert(res.is_valid()); - return res; + return make_smart(res, this->mesh_); #else return make_smart(GenericCirculatorT_DEPRECATED_TraitsT::toHandle(this->mesh_, this->heh_), this->mesh_); #endif