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
This commit is contained in:
Marcel Hollerbach 2019-10-11 09:42:14 -04:00 committed by Mike Blumenkrantz
parent 470c6516fe
commit dd093de23c
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ _animator_cb(void *data)
}
efl_player_playing_set(eo_obj, EINA_FALSE);
pd->animator = NULL;
return ECORE_CALLBACK_CANCEL;
}