cedric pushed a commit to branch master.

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

commit c3c5620c1c135f71fdcfb75355962fa25151d96f
Author: Cedric Bail <[email protected]>
Date:   Mon Mar 19 15:33:11 2018 -0700

    ecore: the main loop has no parent and only one ref, let's properly create 
it.
---
 src/lib/ecore/ecore_main.c | 2 +-
 src/lib/ecore/efl_app.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index ebd572bb65..738677c22a 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -1079,7 +1079,7 @@ _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_del(ML_OBJ);
+   efl_unref(ML_OBJ);
 }
 
 void
diff --git a/src/lib/ecore/efl_app.c b/src/lib/ecore/efl_app.c
index b6e2b1f29d..1df43d593d 100644
--- a/src/lib/ecore/efl_app.c
+++ b/src/lib/ecore/efl_app.c
@@ -111,7 +111,7 @@ EOLIAN static Efl_Loop *
 _efl_app_loop_main_get(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED)
 {
    if (_mainloop_singleton) return _mainloop_singleton;
-   _mainloop_singleton = efl_add(EFL_APP_CLASS, NULL);
+   _mainloop_singleton = efl_add_ref(EFL_APP_CLASS, NULL);
    _mainloop_singleton_data = efl_data_scope_get(_mainloop_singleton, 
EFL_LOOP_CLASS);
    return _mainloop_singleton;
 }

-- 


Reply via email to