From: vsr Date: Mon, 5 Aug 2013 16:47:42 +0000 (+0000) Subject: Fix crash (found by make installcheck) - temporary solution X-Git-Tag: V7_3_0a1~227 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=c23ba6b3e4bc9ad07eac19ea1856b7bb36161a6a;ds=sidebyside Fix crash (found by make installcheck) - temporary solution --- 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();