wined3d: Don't allocate This->draw_buffers in the error path for Init3D().
This commit is contained in:
parent
c33e03cca3
commit
040c33de5a
|
@ -2254,7 +2254,6 @@ err_out:
|
|||
if(swapchain) {
|
||||
IWineD3DSwapChain_Release( (IWineD3DSwapChain *) swapchain);
|
||||
}
|
||||
This->draw_buffers = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(GLenum) * GL_LIMITS(buffers));
|
||||
if(This->stateBlock) {
|
||||
IWineD3DStateBlock_Release((IWineD3DStateBlock *) This->stateBlock);
|
||||
This->stateBlock = NULL;
|
||||
|
|
Loading…
Reference in New Issue