summaryrefslogtreecommitdiff
path: root/GL
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-10-22 18:28:03 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-10-22 18:28:03 +0200
commitfbe19c66c36acfb484809111cf02579a3baf2f0f (patch)
treea0af0fdd05e5085253a831fe8568326f02171295 /GL
parentc6d36b1cee44a9cbb690dff62a4683d7f6fbf30c (diff)
GLX: Fix leak of X pixmaps associated with GLX pixmaps.
Diffstat (limited to 'GL')
-rw-r--r--GL/glx/glxcmds.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/GL/glx/glxcmds.c b/GL/glx/glxcmds.c
index ac2393c3b..992ddbce5 100644
--- a/GL/glx/glxcmds.c
+++ b/GL/glx/glxcmds.c
@@ -1215,6 +1215,11 @@ static int DoDestroyDrawable(__GLXclientState *cl, XID glxdrawable, int type)
return __glXError(GLXBadPbuffer);
}
}
+
+ if (type == GLX_DRAWABLE_PIXMAP) {
+ ((PixmapPtr) pGlxDraw->pDraw)->refcnt--;
+ }
+
FreeResource(glxdrawable, FALSE);
return Success;