aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunEon Park <chuneon.park@samsung.com>2015-03-25 14:42:44 +0900
committerChunEon Park <chuneon.park@samsung.com>2015-03-25 14:45:43 +0900
commite56548aa33000561f1970abd48bfc03f05019415 (patch)
treefb3a135ff93db9cbefbb24cd202fe41206393d39
parentevas: fix use after free. (diff)
downloadefl-e56548aa33000561f1970abd48bfc03f05019415.tar.gz
ecore_idler: + null check.
like timer, animator we do check the idler validation and prevert crash there just in user misusage case. @fix
-rw-r--r--src/lib/ecore/ecore_idler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_idler.c b/src/lib/ecore/ecore_idler.c
index 5faed546fb..a87471766c 100644
--- a/src/lib/ecore/ecore_idler.c
+++ b/src/lib/ecore/ecore_idler.c
@@ -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;