From 61d724e33763dd6bfea40430a434e25983c1e79f Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 22 Nov 2012 16:45:03 +0000 Subject: [PATCH] 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 ); --- src/SMESH/SMESH_subMesh.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ); } } -- 2.39.2