From: tasn Date: Thu, 12 Apr 2012 12:42:29 +0000 (+0000) Subject: Eobj: Fixed a bug in event_callback_del. X-Git-Tag: submit/2.0alpha-wayland/20121127.222020~236 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7aa897ee44875f74de90a73885d56776700bb4a3;p=profile%2Fivi%2Feobj.git Eobj: Fixed a bug in event_callback_del. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@70143 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/lib/eobj.c b/lib/eobj.c index 5335297..26552a8 100644 --- a/lib/eobj.c +++ b/lib/eobj.c @@ -1150,11 +1150,13 @@ eobj_event_callback_del(Eobj *obj, const Eobj_Event_Description *desc, Eobj_Even cb->delete_me = EINA_TRUE; _eobj_callbacks_clear(obj); ret = data; - goto end; + goto found; } } -end: + return NULL; + +found: eobj_event_callback_call(obj, EOBJ_SIG_CALLBACK_DEL, desc); return ret; } @@ -1175,11 +1177,13 @@ eobj_event_callback_del_full(Eobj *obj, const Eobj_Event_Description *desc, Eobj cb->delete_me = EINA_TRUE; _eobj_callbacks_clear(obj); ret = data; - goto end; + goto found; } } -end: + return NULL; + +found: eobj_event_callback_call(obj, EOBJ_SIG_CALLBACK_DEL, desc); return ret; }