wined3d: Fix a memory leak in CreateSwapChain() error handling.

This commit is contained in:
Henri Verbeet 2009-01-14 10:01:12 +01:00 committed by Alexandre Julliard
parent c8c073fc9b
commit 4c7e72bb96
1 changed files with 1 additions and 0 deletions

View File

@ -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;