bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=df561eb725b7c20c43e56893c9825b7ae990f9a1
commit df561eb725b7c20c43e56893c9825b7ae990f9a1 Author: Mike Blumenkrantz <[email protected]> Date: Mon Feb 10 12:10:09 2020 -0500 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 <[email protected]> Differential Revision: https://phab.enlightenment.org/D11307 --- src/lib/elementary/efl_ui_image_zoomable.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) EFL_UI_IMAGE_ZOOMABLE_DATA_GET(data, sd); _grid_clear_all(data); - if (!sd->anim) return ECORE_CALLBACK_CANCEL; + if (!sd->anim) + { + sd->anim_timer = NULL; + return ECORE_CALLBACK_CANCEL; + } sd->cur_frame++; if ((sd->frame_count > 0) && (sd->cur_frame > sd->frame_count)) --
