mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-02 12:51:03 +00:00
Delete saved deferred context state for restore, to avoid leaking refs
* If you replayed an Execute and created the deferred stave state, and then didn't replay the Finish (e.g. if an event in between was selected) this would leak references and keep buffers alive after shutdown.
This commit is contained in:
@@ -206,6 +206,8 @@ WrappedID3D11DeviceContext::~WrappedID3D11DeviceContext()
|
||||
SAFE_RELEASE(m_pRealContext2);
|
||||
SAFE_RELEASE(m_pRealContext3);
|
||||
|
||||
SAFE_DELETE(m_DeferredSavedState);
|
||||
|
||||
SAFE_DELETE(m_CurrentPipelineState);
|
||||
SAFE_RELEASE(m_pRealContext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user