Fix crash (found by make installcheck) - temporary solution

This commit is contained in:
vsr 2013-08-05 16:47:42 +00:00
parent f3171e5c4e
commit c23ba6b3e4

View File

@ -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();