mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Fix use after delete in DX10 overlay code
This commit is contained in:
parent
c8bd81a303
commit
b87ee95f4d
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user