[PATCH 05/16] [WineD3D]: memory leak

Eric Pouech eric.pouech at wanadoo.fr
Sun Oct 22 14:48:15 CDT 2006


- plug a couple of memory leak

A+
---

 dlls/wined3d/directx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 25839b5..7352c2c 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -151,8 +151,10 @@ static void WineD3D_ReleaseFakeGLContext
         if (0 == InterlockedDecrement(&ctx->ref)) {
             glXMakeCurrent(ctx->display, None, NULL);
             glXDestroyContext(ctx->display, ctx->glCtx);
+            XFree(ctx->visInfo);
             ctx->display = NULL;
             ctx->glCtx = NULL;
+            ctx->visInfo = NULL;
             LEAVE_GL();
         }
     }



More information about the wine-patches mailing list