forked from enlightenment/efl
ecore_idle_exiter: unlock when Ecore_Task_Cb is NULL
Summary: - When Ecore_Task_Cb is not set, _ecore_idle_exiter_constructor returns without _ecore_unlock(), and remains to be locked. Reviewers: jpeg Reviewed By: jpeg Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3424
This commit is contained in:
parent
4103f38eed
commit
e840b255f4
|
@ -57,13 +57,15 @@ _ecore_idle_exiter_constructor(Eo *obj, Ecore_Idle_Exiter_Data *ie, Ecore_Task_C
|
|||
if (!func)
|
||||
{
|
||||
ERR("callback function must be set up for an object of class: '%s'", MY_CLASS_NAME);
|
||||
return;
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
ie->func = func;
|
||||
ie->data = (void *)data;
|
||||
|
||||
idle_exiters = (Ecore_Idle_Exiter_Data *)eina_inlist_append(EINA_INLIST_GET(idle_exiters), EINA_INLIST_GET(ie));
|
||||
|
||||
unlock:
|
||||
_ecore_unlock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue