ecore: properly cleanup variable on shutdown, so that cycling another init doesn't crash.

This commit is contained in:
Cedric BAIL 2018-05-14 10:08:32 -07:00
parent a8b70953e4
commit f7b08c4537
1 changed files with 2 additions and 1 deletions

View File

@ -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