forked from enlightenment/efl
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:
parent
c18327d5df
commit
df561eb725
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue