From c23ba6b3e4bc9ad07eac19ea1856b7bb36161a6a Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 5 Aug 2013 16:47:42 +0000 Subject: [PATCH] Fix crash (found by make installcheck) - temporary solution --- src/SMESH_I/SMESH_MeshEditor_i.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 25750af0e..4683044f5 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -745,8 +745,10 @@ struct SMESH_MeshEditor_i::_IDSource : public POA_SMESH::SMESH_IDSource SMESH::SMESH_IDSource_ptr SMESH_MeshEditor_i::MakeIDSource(const SMESH::long_array& ids, SMESH::ElementType type) { - if ( myAuxIDSources.size() > 10 ) - deleteAuxIDSources(); + if ( myAuxIDSources.size() > 10 ) { + delete myAuxIDSources.front(); + myAuxIDSources.pop_front(); + } _IDSource* idSrc = new _IDSource; idSrc->_mesh = myMesh_i->_this(); -- 2.39.2