wined3d: Fixed potential reference of freed backBuffer array in IWineD3DDeviceImpl_SetFrontBackBuffers.

This commit is contained in:
Lauris Kaplinski 2007-11-25 23:07:24 +02:00 committed by Alexandre Julliard
parent 03bba1e6d4
commit 49ea085f11
1 changed files with 1 additions and 0 deletions

View File

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