fix memory leak in event polling
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
5e3e968d2f
commit
d98c28ef86
|
@ -151,9 +151,9 @@ a_xcb_check_cb(EV_P_ ev_check *w, int revents)
|
||||||
{
|
{
|
||||||
xcb_generic_event_t *ev;
|
xcb_generic_event_t *ev;
|
||||||
|
|
||||||
xev_restart:
|
|
||||||
while((ev = xcb_poll_for_event(globalconf.connection)))
|
while((ev = xcb_poll_for_event(globalconf.connection)))
|
||||||
{
|
{
|
||||||
|
xev_restart:
|
||||||
xcb_handle_event(globalconf.evenths, ev);
|
xcb_handle_event(globalconf.evenths, ev);
|
||||||
p_delete(&ev);
|
p_delete(&ev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue