summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-05-12 23:08:30 +0900
committerHermet Park <chuneon.park@samsung.com>2020-05-12 23:08:30 +0900
commit6196311ad7e4f6ceacee0d56c97df06aab8e0995 (patch)
treecd18eb458edfd0943959b5efeb679b64e27dfc5a
parent789900d49adb6d3c0b29b831514b621431108b0b (diff)
downloadefl-6196311ad7e4f6ceacee0d56c97df06aab8e0995.tar.gz
Efl.Canvas.Object.Animation: Prevent crash when called .animation_pause_set.
Summary: When call efl_canvas_object_animation_animation_pause_set, pd->in is freed by calling efl_canvas_object_animation_stop in _animator_cb. So when set pause_state, crash occurred This patch add null check to prevent null access. Test Plan: N/A Reviewers: Hermet, kimcinoo, herb, bu5hm4n Reviewed By: Hermet, bu5hm4n Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11815
-rw-r--r--src/lib/evas/canvas/efl_canvas_object_animation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_object_animation.c b/src/lib/evas/canvas/efl_canvas_object_animation.c
index 3069d067ba..a017f73b96 100644
--- a/src/lib/evas/canvas/efl_canvas_object_animation.c
+++ b/src/lib/evas/canvas/efl_canvas_object_animation.c
@@ -148,7 +148,7 @@ _efl_canvas_object_animation_animation_pause_set(Eo *obj, Efl_Canvas_Object_Anim
_end(obj, pd);
else
_start(obj, pd,(pd->in->speed < 0) ? 1.0 - pd->in->progress : pd->in->progress);
- pd->in->pause_state = pause;
+ if (pd->in) pd->in->pause_state = pause;
}
EOLIAN static Eina_Bool