forked from enlightenment/efl
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>
This commit is contained in:
parent
4ad20ac8e4
commit
92901e0939
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue