summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/egl_xlib
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2008-07-09 10:20:28 -0400
committerZack Rusin <zack@tungstengraphics.com>2008-07-09 10:20:28 -0400
commit48b8a32c6dcd259046958b187927ac584b1a564a (patch)
treeff5ac3408194ddccd0504d0275216ab517e62628 /src/gallium/winsys/egl_xlib
parentd25709df1d5d9dccdeb173b33a57018004fe849c (diff)
egl: plug a small memleak
Diffstat (limited to 'src/gallium/winsys/egl_xlib')
-rw-r--r--src/gallium/winsys/egl_xlib/egl_xlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/egl_xlib/egl_xlib.c b/src/gallium/winsys/egl_xlib/egl_xlib.c
index 83b8bb95b1..708a58b781 100644
--- a/src/gallium/winsys/egl_xlib/egl_xlib.c
+++ b/src/gallium/winsys/egl_xlib/egl_xlib.c
@@ -535,6 +535,7 @@ xlib_eglDestroySurface(_EGLDriver *drv, EGLDisplay dpy, EGLSurface surface)
surf->Base.DeletePending = EGL_TRUE;
}
else {
+ XFreeGC(surf->Dpy, surf->Gc);
st_unreference_framebuffer(&surf->Framebuffer);
free(surf);
}