ecore/idler - simpler checking.
authorChunEon Park <chuneon.park@samsung.com>
Sat, 28 Mar 2015 06:43:50 +0000 (15:43 +0900)
committerChunEon Park <chuneon.park@samsung.com>
Sat, 28 Mar 2015 06:43:50 +0000 (15:43 +0900)
src/lib/ecore/ecore_idler.c

index a874717..eef2d10 100644 (file)
@@ -87,7 +87,7 @@ static void *
 _ecore_idler_del(Ecore_Idler *obj)
 {
    Ecore_Idler_Data *idler = eo_data_scope_get(obj, MY_CLASS);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(idler, NULL);
+   if (!idler) return NULL;
    EINA_SAFETY_ON_TRUE_RETURN_VAL(idler->delete_me, NULL);
    idler->delete_me = 1;
    idlers_delete_me = 1;