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
This commit is contained in:
Mike Blumenkrantz 2020-02-10 12:10:09 -05:00 committed by Marcel Hollerbach
parent c18327d5df
commit df561eb725
1 changed files with 5 additions and 1 deletions

View File

@ -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))