summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-14 10:08:32 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-22 16:55:08 -0700
commit1719d3f9053f9bfb379b4f5401c32630930183b7 (patch)
treebd4c979bae7a7ae42fafa512f10bade9a76911d5
parent4dced66bf7395502ac8dd89576c31dc2fd5166be (diff)
downloadefl-1719d3f9053f9bfb379b4f5401c32630930183b7.tar.gz
ecore: properly cleanup variable on shutdown, so that cycling another init doesn't crash.
-rw-r--r--src/lib/ecore/ecore_main.c3
1 files changed, 2 insertions, 1 deletions
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