fix memory leak in event polling

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-05 15:40:57 +02:00
parent 5e3e968d2f
commit d98c28ef86
1 changed files with 1 additions and 1 deletions

View File

@ -151,9 +151,9 @@ a_xcb_check_cb(EV_P_ ev_check *w, int revents)
{
xcb_generic_event_t *ev;
xev_restart:
while((ev = xcb_poll_for_event(globalconf.connection)))
{
xev_restart:
xcb_handle_event(globalconf.evenths, ev);
p_delete(&ev);
}