From e9855c93355e94fb44dedbfb6f1db106f0c96e7f Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Mon, 13 Jan 2025 15:29:41 +0000 Subject: [PATCH] Foundation Classes - Standard_Type destructor static_assert #255 Fix assertion logic in Standard_Type destructor for registry unbinding --- src/Standard/Standard_Type.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Standard/Standard_Type.cxx b/src/Standard/Standard_Type.cxx index 3da6f2c69f..84fccbcb10 100644 --- a/src/Standard/Standard_Type.cxx +++ b/src/Standard/Standard_Type.cxx @@ -148,5 +148,5 @@ Standard_Type::~Standard_Type () { // remove descriptor from the registry registry_type& aRegistry = GetRegistry(); - Standard_ASSERT(!aRegistry.UnBind(mySystemName), "Standard_Type::~Standard_Type() cannot find itself in registry",); + Standard_ASSERT(aRegistry.UnBind(mySystemName), "Standard_Type::~Standard_Type() cannot find itself in registry",); }