Fix use after delete in DX10 overlay code

This commit is contained in:
Benjamin Jemlich 2011-05-14 10:50:19 +02:00
parent c8bd81a303
commit b87ee95f4d

View File

@ -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) {