From: Zack Rusin Date: Wed, 9 Jul 2008 14:20:28 +0000 (-0400) Subject: egl: plug a small memleak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48b8a32c6dcd259046958b187927ac584b1a564a;p=mesa.git egl: plug a small memleak --- diff --git a/src/gallium/winsys/egl_xlib/egl_xlib.c b/src/gallium/winsys/egl_xlib/egl_xlib.c index 83b8bb95b18..708a58b781f 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); }