From 49ea085f118712b54dfef270391fa9b42bfefdec Mon Sep 17 00:00:00 2001 From: Lauris Kaplinski Date: Sun, 25 Nov 2007 23:07:24 +0200 Subject: [PATCH] wined3d: Fixed potential reference of freed backBuffer array in IWineD3DDeviceImpl_SetFrontBackBuffers. --- dlls/wined3d/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 30ac0b79d41..8be33850181 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -6047,6 +6047,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *ifa IWineD3DSurface_SetContainer(Swapchain->backBuffer[0], (IWineD3DBase *) Swapchain); } else { HeapFree(GetProcessHeap(), 0, Swapchain->backBuffer); + Swapchain->backBuffer = NULL; } }