examples: fix bad unref's in ecore and evas.
authorAvi Levin <avi.levin@samsung.com>
Fri, 6 Mar 2015 18:17:55 +0000 (19:17 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 6 Mar 2015 19:19:22 +0000 (20:19 +0100)
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>
src/examples/ecore/ecore_idler_example.c
src/examples/evas/evas-object-manipulation-eo.c

index 29919265a9d5cb84d0788d51ee37051c15b665f1..681d95f1cbd6ce71bbd4b961e7556e02779c4c28 100644 (file)
@@ -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;
index e594e9058dd9458d659f95f7be14855f7b8fe05c..6bb2cbd978c0638cdd9052a93e586e5a71c906a7 100644 (file)
@@ -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;