mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 13:10:34 +05:00
More safety
- if ( l_d->first->IsDeletable() ) + if ( l_d->first != listener && l_d->first->IsDeletable() )
This commit is contained in:
parent
06236fdb5a
commit
5cdfcba279
@ -2288,7 +2288,7 @@ void SMESH_subMesh::setEventListener(EventListener* listener,
|
|||||||
EventListenerData* curData = l_d->second;
|
EventListenerData* curData = l_d->second;
|
||||||
if ( curData && curData != data && curData->IsDeletable() )
|
if ( curData && curData != data && curData->IsDeletable() )
|
||||||
delete curData;
|
delete curData;
|
||||||
if ( l_d->first->IsDeletable() )
|
if ( l_d->first != listener && l_d->first->IsDeletable() )
|
||||||
delete l_d->first;
|
delete l_d->first;
|
||||||
_eventListeners.erase( l_d );
|
_eventListeners.erase( l_d );
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user