cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e5f5bc243d930695cf8df2bf14be9ff8baa0ebac

commit e5f5bc243d930695cf8df2bf14be9ff8baa0ebac
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Thu Mar 9 16:13:43 2017 -0800

    ecore_sdl: avoid crash during shutdown due to Ecore_Event queue.
---
 src/lib/ecore_sdl/ecore_sdl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/ecore_sdl/ecore_sdl.c b/src/lib/ecore_sdl/ecore_sdl.c
index 2fee26c..e7302de 100644
--- a/src/lib/ecore_sdl/ecore_sdl.c
+++ b/src/lib/ecore_sdl/ecore_sdl.c
@@ -100,6 +100,11 @@ ecore_sdl_shutdown(void)
 
    SDL_Quit();
 
+   ecore_event_type_flush(ECORE_SDL_EVENT_GOT_FOCUS,
+                          ECORE_SDL_EVENT_LOST_FOCUS,
+                          ECORE_SDL_EVENT_RESIZE,
+                          ECORE_SDL_EVENT_EXPOSE);
+
    ecore_event_shutdown();
    eina_log_domain_unregister(_ecore_sdl_log_dom);
    _ecore_sdl_log_dom = -1;

-- 


Reply via email to