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; }