egl: plug a small memleak

This commit is contained in:
Zack Rusin 2008-07-09 10:20:28 -04:00
parent d25709df1d
commit 48b8a32c6d

View 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);
}