From 987df8a487114245a4aab0c7cc824c234fc05352 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 24 Jun 2023 12:45:38 +0200 Subject: [PATCH] [util] Filter out internal private ref on object destruction Closes #3531 for real this time. --- src/util/com/com_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/com/com_object.h b/src/util/com/com_object.h index 7468bc06..f42fbcc3 100644 --- a/src/util/com/com_object.h +++ b/src/util/com/com_object.h @@ -73,7 +73,7 @@ namespace dxvk { } bool HasLiveReferences() const { - return bool(m_refCount.load() | m_refPrivate.load()); + return bool(m_refCount.load() | (m_refPrivate.load() & 0x7FFFFFFF)); } protected: