Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Jemlich <pcgod@users.sourceforge.net>2011-05-14 12:50:19 +0400
committerBenjamin Jemlich <pcgod@users.sourceforge.net>2011-05-14 12:53:07 +0400
commitb87ee95f4dfaf3213fac346f11579e2bedbcaf55 (patch)
treeb44de8119d922ff7cd417274f88e182f15ca0758 /overlay/d3d10.cpp
parentc8bd81a303c3d7e3d7749f3cf9fab22771c657b1 (diff)
Fix use after delete in DX10 overlay code
Diffstat (limited to 'overlay/d3d10.cpp')
-rw-r--r--overlay/d3d10.cpp2
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) {