summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_animation_player.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-10-11 09:42:14 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-11 10:03:17 -0400
commitdd093de23cb0d0eb9b3de5513ef9881b2566efca (patch)
tree49279ff8bed0e5134e63e71cfe992c82f0b0211d /src/lib/evas/canvas/efl_canvas_animation_player.c
parent470c6516fe4fc3b25706e9331b6d8364f8b6c4d0 (diff)
efl_canvas_animation_player: fix double free
Summary: when we are returning 0 in a animation callback, the animator will be deleted. This fixes a crash in tab_pager. Depends on D10306 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10307
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/efl_canvas_animation_player.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_animation_player.c b/src/lib/evas/canvas/efl_canvas_animation_player.c
index 5e2d4046a0..e8b57cb5b9 100644
--- a/src/lib/evas/canvas/efl_canvas_animation_player.c
+++ b/src/lib/evas/canvas/efl_canvas_animation_player.c
@@ -149,6 +149,7 @@ _animator_cb(void *data)
149 } 149 }
150 efl_player_playing_set(eo_obj, EINA_FALSE); 150 efl_player_playing_set(eo_obj, EINA_FALSE);
151 151
152 pd->animator = NULL;
152 return ECORE_CALLBACK_CANCEL; 153 return ECORE_CALLBACK_CANCEL;
153} 154}
154 155