forked from enlightenment/efl
ecore: Avoid using return in locked section
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 62346
This commit is contained in:
parent
f05e37addf
commit
4f5d5c40bf
|
@ -171,7 +171,7 @@ ecore_event_handler_del(Ecore_Event_Handler *event_handler)
|
||||||
"ecore_event_handler_del");
|
"ecore_event_handler_del");
|
||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
}
|
||||||
EINA_SAFETY_ON_TRUE_RETURN_VAL(event_handler->delete_me, NULL);
|
EINA_SAFETY_ON_TRUE_GOTO(event_handler->delete_me, unlock);
|
||||||
event_handler->delete_me = 1;
|
event_handler->delete_me = 1;
|
||||||
event_handlers_delete_list = eina_list_append(event_handlers_delete_list, event_handler);
|
event_handlers_delete_list = eina_list_append(event_handlers_delete_list, event_handler);
|
||||||
data = event_handler->data;
|
data = event_handler->data;
|
||||||
|
@ -297,7 +297,7 @@ ecore_event_del(Ecore_Event *event)
|
||||||
ECORE_MAGIC_FAIL(event, ECORE_MAGIC_EVENT, "ecore_event_del");
|
ECORE_MAGIC_FAIL(event, ECORE_MAGIC_EVENT, "ecore_event_del");
|
||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
}
|
||||||
EINA_SAFETY_ON_TRUE_RETURN_VAL(event->delete_me, NULL);
|
EINA_SAFETY_ON_TRUE_GOTO(event->delete_me, unlock);
|
||||||
event->delete_me = 1;
|
event->delete_me = 1;
|
||||||
data = event->data;
|
data = event->data;
|
||||||
unlock:
|
unlock:
|
||||||
|
@ -387,7 +387,7 @@ ecore_event_filter_del(Ecore_Event_Filter *ef)
|
||||||
ECORE_MAGIC_FAIL(ef, ECORE_MAGIC_EVENT_FILTER, "ecore_event_filter_del");
|
ECORE_MAGIC_FAIL(ef, ECORE_MAGIC_EVENT_FILTER, "ecore_event_filter_del");
|
||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
}
|
||||||
EINA_SAFETY_ON_TRUE_RETURN_VAL(ef->delete_me, NULL);
|
EINA_SAFETY_ON_TRUE_GOTO(ef->delete_me, unlock);
|
||||||
ef->delete_me = 1;
|
ef->delete_me = 1;
|
||||||
event_filters_delete_me = 1;
|
event_filters_delete_me = 1;
|
||||||
data = ef->data;
|
data = ef->data;
|
||||||
|
|
Loading…
Reference in New Issue