From 4c7e72bb963d2a460f6f0375a29d512c6412d9a0 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 14 Jan 2009 10:01:12 +0100 Subject: [PATCH] wined3d: Fix a memory leak in CreateSwapChain() error handling. --- dlls/wined3d/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index dc18b22f508..74645b46379 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1566,6 +1566,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSwapChain(IWineD3DDevice* iface, break; case SURFACE_UNKNOWN: FIXME("Caller tried to create a SURFACE_UNKNOWN swapchain\n"); + HeapFree(GetProcessHeap(), 0, object); return WINED3DERR_INVALIDCALL; } object->wineD3DDevice = This;