aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-03-19 15:33:11 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-03-19 15:33:11 -0700
commitc3c5620c1c135f71fdcfb75355962fa25151d96f (patch)
treeedbd96dc08fa5f5dcacc80092474d1594f79a38a
parenteo: update tests to also use efl_add_ref correctly. (diff)
downloadefl-c3c5620c1c135f71fdcfb75355962fa25151d96f.tar.gz
ecore: the main loop has no parent and only one ref, let's properly create it.
-rw-r--r--src/lib/ecore/ecore_main.c2
-rw-r--r--src/lib/ecore/efl_app.c2
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;
}