cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=92901e09397190bbaf00afc37ee28fe56378d093
commit 92901e09397190bbaf00afc37ee28fe56378d093 Author: Avi Levin <avi.le...@samsung.com> Date: Fri Mar 6 19:17:55 2015 +0100 examples: fix bad unref's in ecore and evas. Summary: recived Error that object already deleted in the following files: In evas-object-manipulation-eo.c: d.clipper and d.bg where created with eo_add ( 1 ref ) but where unrefd twice: once explicity and once when d.ee were deleted. In ecore_indler_example: ctxt->idler were again explicity unrefd and again unrefd by ecore_shutdown. @fix Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2093 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- src/examples/ecore/ecore_idler_example.c | 1 - src/examples/evas/evas-object-manipulation-eo.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/examples/ecore/ecore_idler_example.c b/src/examples/ecore/ecore_idler_example.c index 2991926..681d95f 100644 --- a/src/examples/ecore/ecore_idler_example.c +++ b/src/examples/ecore/ecore_idler_example.c @@ -65,7 +65,6 @@ _event_handler_cb(void *data, int type EINA_UNUSED, void *event EINA_UNUSED) // ecore_idle_enterer_del(ctxt->enterer); ecore_idle_exiter_del(ctxt->exiter); // ecore_idler_del(ctxt->idler); - eo_unref(ctxt->idler); ctxt->enterer = NULL; ctxt->exiter = NULL; diff --git a/src/examples/evas/evas-object-manipulation-eo.c b/src/examples/evas/evas-object-manipulation-eo.c index e594e90..6bb2cbd 100644 --- a/src/examples/evas/evas-object-manipulation-eo.c +++ b/src/examples/evas/evas-object-manipulation-eo.c @@ -248,10 +248,6 @@ main(void) ecore_main_loop_begin(); - /* Decrementing object's reference count.*/ - eo_unref(d.bg); - eo_unref(d.clipper_border); - ecore_evas_free(d.ee); ecore_evas_shutdown(); return 0; --