diff options
author | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2011-05-14 12:50:19 +0400 |
---|---|---|
committer | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2011-05-14 12:53:07 +0400 |
commit | b87ee95f4dfaf3213fac346f11579e2bedbcaf55 (patch) | |
tree | b44de8119d922ff7cd417274f88e182f15ca0758 /overlay/d3d10.cpp | |
parent | c8bd81a303c3d7e3d7749f3cf9fab22771c657b1 (diff) |
Fix use after delete in DX10 overlay code
Diffstat (limited to 'overlay/d3d10.cpp')
-rw-r--r-- | overlay/d3d10.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay/d3d10.cpp b/overlay/d3d10.cpp index ed8cff4ef..3ef57012c 100644 --- a/overlay/d3d10.cpp +++ b/overlay/d3d10.cpp @@ -446,8 +446,8 @@ static HRESULT __stdcall myPresent(IDXGISwapChain *pSwapChain, UINT SyncInterval D10State *ds = chains[pSwapChain]; if (ds && ds->pDevice != pDevice) { ods("DXGI: SwapChain device changed"); - delete ds; devices.erase(ds->pDevice); + delete ds; ds = NULL; } if (! ds) { |