From bd62fb9a1d7c723d1cd4c345d1d990340b37af48 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 5 Sep 2024 12:11:41 +0100 Subject: [PATCH] Release all internal pointers in wrapped device configuration --- renderdoc/driver/d3d12/d3d12_common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d12/d3d12_common.h b/renderdoc/driver/d3d12/d3d12_common.h index fdb8112cf..a1034f513 100644 --- a/renderdoc/driver/d3d12/d3d12_common.h +++ b/renderdoc/driver/d3d12/d3d12_common.h @@ -372,7 +372,11 @@ public: } } - ~WrappedID3D12DeviceConfiguration() { SAFE_RELEASE(m_pReal); } + ~WrappedID3D12DeviceConfiguration() + { + SAFE_RELEASE(m_pReal); + SAFE_RELEASE(m_pReal1); + } bool IsValid() { return m_pReal != NULL; } bool IsValid1() { return m_pReal1 != NULL; }