ecore_imf: avoid crash during shutdown due to Ecore_Event queue.

This commit is contained in:
Cedric BAIL 2017-03-09 16:11:19 -08:00
parent 0cd43b45d9
commit 41769b122c
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,13 @@ EAPI int
ecore_imf_shutdown(void)
{
if (--_ecore_imf_init_count != 0) return _ecore_imf_init_count;
ecore_event_type_flush(ECORE_IMF_EVENT_PREEDIT_START,
ECORE_IMF_EVENT_PREEDIT_END,
ECORE_IMF_EVENT_PREEDIT_CHANGED,
ECORE_IMF_EVENT_COMMIT,
ECORE_IMF_EVENT_DELETE_SURROUNDING);
ecore_imf_module_shutdown();
eina_log_domain_unregister(_ecore_imf_log_dom);
_ecore_imf_log_dom = -1;