wined3d: Fixed potential reference of freed backBuffer array in IWineD3DDeviceImpl_SetFrontBackBuffers.
This commit is contained in:
parent
03bba1e6d4
commit
49ea085f11
|
@ -6047,6 +6047,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *ifa
|
||||||
IWineD3DSurface_SetContainer(Swapchain->backBuffer[0], (IWineD3DBase *) Swapchain);
|
IWineD3DSurface_SetContainer(Swapchain->backBuffer[0], (IWineD3DBase *) Swapchain);
|
||||||
} else {
|
} else {
|
||||||
HeapFree(GetProcessHeap(), 0, Swapchain->backBuffer);
|
HeapFree(GetProcessHeap(), 0, Swapchain->backBuffer);
|
||||||
|
Swapchain->backBuffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue