From c40f66fd409737fcd4d29e1e00bc20abc745aa71 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 20 Aug 2008 22:45:11 +0200 Subject: [PATCH 2/3] wined3d: Don't allocate This->draw_buffers in the error path for Init3D() I'm not sure how this got here. --- dlls/wined3d/device.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 69a7642..b6a9d7a 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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; -- 1.5.6.4