aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMyoungwoon Roy, Kim <myoungwoon.kim@samsung.com>2018-01-22 17:07:58 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-01-22 17:07:58 +0900
commit6629df5e67c9d6c3f5ec8ebfce03536b81bc985c (patch)
tree1bc09d91ab07c09c80a59fd75cef883a940fe877
parentfix break of hoversels (diff)
downloadefl-6629df5e67c9d6c3f5ec8ebfce03536b81bc985c.tar.gz
ecore_anim: Check for null ptr deref
Summary: This patch fixes a tentative crash owing to null ptr dereference ecore_animator_freeze() has a same patch already. Test Plan: execute test suite Reviewers: cedric, raster, jpeg, stefan, Jaehyun_Cho Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5752
-rw-r--r--src/lib/ecore/ecore_anim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index dcc89d05cd..1796b67089 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -880,6 +880,7 @@ EAPI void
ecore_animator_thaw(Ecore_Animator *animator)
{
EINA_MAIN_LOOP_CHECK_RETURN;
+ if (!animator) return ;
if (animator->delete_me) return;
if (animator->suspended)
{