H. Verbeet : wined3d: Don't allocate This-> draw_buffers in the error path for Init3D().

Alexandre Julliard julliard at winehq.org
Thu Aug 21 10:02:16 CDT 2008


Module: wine
Branch: master
Commit: 040c33de5ad0215e4816f9187c1aded582482d15
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=040c33de5ad0215e4816f9187c1aded582482d15

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Wed Aug 20 22:45:11 2008 +0200

wined3d: Don't allocate This->draw_buffers in the error path for Init3D().

---

 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;




More information about the wine-cvs mailing list