diff --git a/src/util/com/com_object.h b/src/util/com/com_object.h index 15561edb..f3e961ba 100644 --- a/src/util/com/com_object.h +++ b/src/util/com/com_object.h @@ -12,7 +12,7 @@ return S_OK; \ } \ } while (0) - +#include namespace dxvk { template @@ -28,8 +28,10 @@ namespace dxvk { ULONG Release() { ULONG refCount = --m_refCount; - if (refCount == 0) + if (refCount == 0) { + refCount += 0x80000000u; delete this; + } return refCount; }