From 8f3cb5aef1021b835d4e882f90f63c395ffe4db4 Mon Sep 17 00:00:00 2001 From: caro Date: Tue, 15 Jun 2010 22:37:07 +0000 Subject: [PATCH] fix for double free, occured while processing a buffered event twice. patch by Alexander Kerner git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@49690 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xcb/ecore_xcb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_x/xcb/ecore_xcb.c b/src/lib/ecore_x/xcb/ecore_xcb.c index 9e7db07..07a76ed 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb.c +++ b/src/lib/ecore_x/xcb/ecore_xcb.c @@ -924,7 +924,10 @@ _ecore_xcb_fd_handler(void *data, Ecore_Fd_Handler *fd_handler __UNUSED__) /* We check if _ecore_xcb_event_buffered is NULL or not */ if (_ecore_xcb_event_buffered) - handle_event(_ecore_xcb_event_buffered); + { + handle_event(_ecore_xcb_event_buffered); + _ecore_xcb_event_buffered = NULL; + } while ((ev = xcb_poll_for_event(c))) handle_event(ev); -- 2.7.4