]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix crash (found by make installcheck)
authorvsr <vsr@opencascade.com>
Mon, 5 Aug 2013 15:45:22 +0000 (15:45 +0000)
committervsr <vsr@opencascade.com>
Mon, 5 Aug 2013 15:45:22 +0000 (15:45 +0000)
src/SMESH_I/SMESH_Filter_i.cxx

index b973c9c682f1bf23fb89da43d112b9345ae2ab14..e52d29b558c5259311793762df8a11de1961aa31 100644 (file)
@@ -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();