ecore_sdl: avoid crash during shutdown due to Ecore_Event queue.

This commit is contained in:
Cedric BAIL 2017-03-09 16:13:43 -08:00
parent b7d8f7bdd3
commit e5f5bc243d
1 changed files with 5 additions and 0 deletions

View File

@ -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;