ecore_idle_exiter: return NULL in eo_finalize() when Ecore_Task_Cb is not set

Summary: - ecore_idle_exiter_add should return NULL, when Ecore_Task_Cb is not set.

Reviewers: jpeg, woohyun, jaehwan, Jaehyun

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3425
This commit is contained in:
Sung-Taek Hong 2015-12-18 17:58:53 +09:00 committed by Jaehwan Kim
parent 25ebd91555
commit 1b6a400a29
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ _ecore_idle_exiter_del(Ecore_Idle_Exiter *obj)
EOLIAN static Eo *
_ecore_idle_exiter_eo_base_finalize(Eo *obj, Ecore_Idle_Exiter_Data *idle_exiter)
{
if (!idle_exiter)
if (!idle_exiter->func)
{
return NULL;
}