diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index aebcfaf9a8f..ecc00d6a685 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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; }