summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-02-10 12:10:09 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-20 15:57:48 +0100
commitdf561eb725b7c20c43e56893c9825b7ae990f9a1 (patch)
tree9329414a3a86123b85d5a30e468643f20c10dc68
parentc18327d5df1735b7d18f4d7194692079f3879c6c (diff)
efl_ui/image_zoomable: unset timer pointer when canceling animation timer
make sure we have no stale pointers later on in this case Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11307
-rw-r--r--src/lib/elementary/efl_ui_image_zoomable.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_image_zoomable.c b/src/lib/elementary/efl_ui_image_zoomable.c
index 8045ec6363..64f6ce210f 100644
--- a/src/lib/elementary/efl_ui_image_zoomable.c
+++ b/src/lib/elementary/efl_ui_image_zoomable.c
@@ -3004,7 +3004,11 @@ _efl_ui_image_zoomable_animate_cb(void *data)
3004 EFL_UI_IMAGE_ZOOMABLE_DATA_GET(data, sd); 3004 EFL_UI_IMAGE_ZOOMABLE_DATA_GET(data, sd);
3005 _grid_clear_all(data); 3005 _grid_clear_all(data);
3006 3006
3007 if (!sd->anim) return ECORE_CALLBACK_CANCEL; 3007 if (!sd->anim)
3008 {
3009 sd->anim_timer = NULL;
3010 return ECORE_CALLBACK_CANCEL;
3011 }
3008 3012
3009 sd->cur_frame++; 3013 sd->cur_frame++;
3010 if ((sd->frame_count > 0) && (sd->cur_frame > sd->frame_count)) 3014 if ((sd->frame_count > 0) && (sd->cur_frame > sd->frame_count))