mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
egl: plug a small memleak
This commit is contained in:
parent
d25709df1d
commit
48b8a32c6d
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue