From: eap Date: Thu, 22 Nov 2012 16:45:03 +0000 (+0000) Subject: regression imps/H4 X-Git-Tag: V6_6_0rc1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61d724e33763dd6bfea40430a434e25983c1e79f;p=modules%2Fsmesh.git regression imps/H4 Fix DeleteEventListener(): erase self from SMESH_subMeshEventListener::myBusySM + if ( l_d->first && !l_d->first->IsDeletable() ) + l_d->first->myBusySM.erase( this ); --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index e9811cfff..5fae7685a 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -2203,6 +2203,9 @@ void SMESH_subMesh::DeleteEventListener(EventListener* listener) delete l_d->second; } _eventListeners.erase( l_d ); + + if ( l_d->first && !l_d->first->IsDeletable() ) + l_d->first->myBusySM.erase( this ); } }