mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-04-05 02:00:38 +02:00
Fix two memory leaks in _XFreeX11XCBStructure()
Even when XCloseDisplay() was called, some memory was leaked. XCloseDisplay() calls _XFreeDisplayStructure(), which calls _XFreeX11XCBStructure(). However, _XFreeX11XCBStructure() did not destroy the condition variables, resulting in the leaking of some 40 bytes. Signed-off-by: Hodong <hodong@yozmos.com>
This commit is contained in:
parent
da97120f23
commit
8a368d808f
1 changed files with 2 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ void _XFreeX11XCBStructure(Display *dpy)
|
|||
dpy->xcb->pending_requests = tmp->next;
|
||||
free(tmp);
|
||||
}
|
||||
xcondition_clear(dpy->xcb->event_notify);
|
||||
xcondition_clear(dpy->xcb->reply_notify);
|
||||
xcondition_free(dpy->xcb->event_notify);
|
||||
xcondition_free(dpy->xcb->reply_notify);
|
||||
Xfree(dpy->xcb);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue