From: vsr Date: Mon, 5 Aug 2013 15:45:22 +0000 (+0000) Subject: Fix crash (found by make installcheck) X-Git-Tag: V7_3_0a1~228 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f3171e5c4ed477e85e8b4c8ad5bef45f911966e9;p=modules%2Fsmesh.git Fix crash (found by make installcheck) --- diff --git a/src/SMESH_I/SMESH_Filter_i.cxx b/src/SMESH_I/SMESH_Filter_i.cxx index b973c9c68..e52d29b55 100644 --- a/src/SMESH_I/SMESH_Filter_i.cxx +++ b/src/SMESH_I/SMESH_Filter_i.cxx @@ -3070,8 +3070,7 @@ CORBA::Boolean Filter_i::GetCriteria( SMESH::Filter::Criteria_out theCriteria ) //======================================================================= CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria ) { - if ( myPredicate != 0 ) - myPredicate->UnRegister(); + SetPredicate( SMESH::Predicate::_nil() ); SMESH::FilterManager_i* aFilter = new SMESH::FilterManager_i(); FilterManager_ptr aFilterMgr = aFilter->_this();