ecore_idle_exiter: return NULL in eo_finalize() when Ecore_Task_Cb is not set
authorSung-Taek Hong <sth253.hong@samsung.com>
Fri, 18 Dec 2015 08:58:53 +0000 (17:58 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 18 Dec 2015 08:58:54 +0000 (17:58 +0900)
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

src/lib/ecore/ecore_idle_exiter.c

index 3160f23..8fc2530 100644 (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;
      }