edje: unset internal _need_imf flag on shutdown
authorMike Blumenkrantz <zmike@samsung.com>
Tue, 14 Aug 2018 14:45:13 +0000 (10:45 -0400)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 17 Aug 2018 04:15:03 +0000 (13:15 +0900)
Summary:
failing to unset this causes the ecore_imf flag to go negative if edje
is ever completely shut down twice

@fix

Reviewers: ManMower

Reviewed By: ManMower

Subscribers: ManMower, #reviewers, cedric, #committers

Tags: #efl_layout_engine, #easy

Differential Revision: https://phab.enlightenment.org/D6763

src/lib/edje/edje_main.c

index 488c0ca..1774a6e 100644 (file)
@@ -226,7 +226,10 @@ _edje_shutdown_core(void)
 
 #ifdef HAVE_ECORE_IMF
    if (_need_imf)
-     ecore_imf_shutdown();
+     {
+        ecore_imf_shutdown();
+        _need_imf = EINA_FALSE;
+     }
 #endif
 
 #ifdef HAVE_EPHYSICS