egl: plug a small memleak
authorZack Rusin <zack@tungstengraphics.com>
Wed, 9 Jul 2008 14:20:28 +0000 (10:20 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Wed, 9 Jul 2008 14:20:28 +0000 (10:20 -0400)
src/gallium/winsys/egl_xlib/egl_xlib.c

index 83b8bb95b18f34fce50e2b9b55a07ddcd3632ccb..708a58b781f243a4cce9dbfe5d9645fed94f61a9 100644 (file)
@@ -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);
       }