diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-10-22 18:28:03 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-10-22 18:28:03 +0200 |
commit | fbe19c66c36acfb484809111cf02579a3baf2f0f (patch) | |
tree | a0af0fdd05e5085253a831fe8568326f02171295 | |
parent | c6d36b1cee44a9cbb690dff62a4683d7f6fbf30c (diff) |
GLX: Fix leak of X pixmaps associated with GLX pixmaps.
-rw-r--r-- | GL/glx/glxcmds.c | 5 |
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; |