From 17527c53077958d7ae6f5c110e5c7a03ae4d6c9e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 12 Apr 2012 12:42:29 +0000 Subject: [PATCH] Eobj: Fixed a bug in event_callback_del. SVN revision: 70143 --- legacy/eobj/lib/eobj.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/legacy/eobj/lib/eobj.c b/legacy/eobj/lib/eobj.c index 5335297341..26552a87c8 100644 --- a/legacy/eobj/lib/eobj.c +++ b/legacy/eobj/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; }