mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
fix mem leaks
This commit is contained in:
parent
573b4414b9
commit
f44e2f14d2
1 changed files with 4 additions and 0 deletions
|
|
@ -447,6 +447,10 @@ xmesa_free_buffer(XMesaBuffer buffer)
|
|||
/* Unreference. If count = zero we'll really delete the buffer */
|
||||
_mesa_unreference_framebuffer(&fb);
|
||||
|
||||
XFreeGC(b->xm_visual->display, b->gc);
|
||||
|
||||
free(buffer);
|
||||
|
||||
return;
|
||||
}
|
||||
/* continue search */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue