cedric pushed a commit to branch master.

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

commit 41769b122ccf03e91bb731ab0d810f2f86659a63
Author: Cedric BAIL <[email protected]>
Date:   Thu Mar 9 16:11:19 2017 -0800

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

diff --git a/src/lib/ecore_imf/ecore_imf.c b/src/lib/ecore_imf/ecore_imf.c
index 0f5b75f..5b5da17 100644
--- a/src/lib/ecore_imf/ecore_imf.c
+++ b/src/lib/ecore_imf/ecore_imf.c
@@ -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;

-- 


Reply via email to