ecore_idler: + null check.

like timer, animator we do check the idler validation
and prevert crash there just in user misusage case.

@fix
This commit is contained in:
ChunEon Park 2015-03-25 14:42:44 +09:00
parent dd6db2b603
commit e56548aa33
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +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);
EINA_SAFETY_ON_TRUE_RETURN_VAL(idler->delete_me, NULL);
idler->delete_me = 1;
idlers_delete_me = 1;