wined3d: Don't leak the swapchain in IWineD3DDeviceImpl_Reset() if the display mode is unsupported.

This commit is contained in:
Henri Verbeet 2009-03-31 09:38:14 +02:00 committed by Alexandre Julliard
parent 4ccbc948a1
commit 7f740f2a51
1 changed files with 1 additions and 0 deletions

View File

@ -7605,6 +7605,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
WARN("Rejecting Reset() call because the requested display mode is not supported\n");
WARN("Requested mode: %d, %d\n", pPresentationParameters->BackBufferWidth,
pPresentationParameters->BackBufferHeight);
IWineD3DSwapChain_Release((IWineD3DSwapChain *)swapchain);
return WINED3DERR_INVALIDCALL;
}