]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IPAL0052197: TC7.3.0 "Fatal error" when try to add new filter to filter library
authorkga <kga@opencascade.com>
Wed, 4 Dec 2013 09:36:38 +0000 (09:36 +0000)
committerkga <kga@opencascade.com>
Wed, 4 Dec 2013 09:36:38 +0000 (09:36 +0000)
src/SMESH_I/SMESH_Filter_i.cxx

index 61d8faa5abcc63c4d7513e3fd552f574a2ca63c3..5ccc12bff946e60b75af5b70f72c15855be05fe8 100644 (file)
@@ -3067,8 +3067,8 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
   }
 
   SetPredicate( aResPredicate );
-
-  aResPredicate->UnRegister();
+  if ( !aResPredicate->_is_nil() )
+    aResPredicate->UnRegister();
 
   return !aResPredicate->_is_nil();
 }