summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorAvi Levin <avi.levin@samsung.com>2015-03-06 19:17:55 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-06 20:19:22 +0100
commit92901e09397190bbaf00afc37ee28fe56378d093 (patch)
tree974a5029f0043d5cfd13e7b667cac583cab9f3a8 /src/examples
parent4ad20ac8e40a97ffcbb4851e75d243c3d3055e7e (diff)
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 <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/ecore/ecore_idler_example.c1
-rw-r--r--src/examples/evas/evas-object-manipulation-eo.c4
2 files changed, 0 insertions, 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) //
65 ecore_idle_enterer_del(ctxt->enterer); 65 ecore_idle_enterer_del(ctxt->enterer);
66 ecore_idle_exiter_del(ctxt->exiter); 66 ecore_idle_exiter_del(ctxt->exiter);
67// ecore_idler_del(ctxt->idler); 67// ecore_idler_del(ctxt->idler);
68 eo_unref(ctxt->idler);
69 68
70 ctxt->enterer = NULL; 69 ctxt->enterer = NULL;
71 ctxt->exiter = NULL; 70 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)
248 248
249 ecore_main_loop_begin(); 249 ecore_main_loop_begin();
250 250
251 /* Decrementing object's reference count.*/
252 eo_unref(d.bg);
253 eo_unref(d.clipper_border);
254
255 ecore_evas_free(d.ee); 251 ecore_evas_free(d.ee);
256 ecore_evas_shutdown(); 252 ecore_evas_shutdown();
257 return 0; 253 return 0;