cedric pushed a commit to branch master.

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

commit f7b08c4537f31048c478be9fec91e87cbfe9d56e
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon May 14 10:08:32 2018 -0700

    ecore: properly cleanup variable on shutdown, so that cycling another init 
doesn't crash.
---
 src/lib/ecore/ecore_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index 67f48cba44..c3127071f2 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -1085,7 +1085,8 @@ _ecore_main_loop_shutdown(void)
    if (!ML_OBJ) return;
    _ecore_main_loop_clear(ML_OBJ, ML_DAT);
 // XXX: this seemingly closes fd's it shouldn't.... :( fd 0?
-   efl_unref(ML_OBJ);
+   efl_replace(&ML_OBJ, NULL);
+   ML_DAT = NULL;
 }
 
 void

-- 


Reply via email to