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:
baldurk
2017-05-31 14:25:50 +01:00
parent be4358207a
commit 2902fe07fd
+2
View File
@@ -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);