elm : fix return of gengrid item swap anim to prevent animation memory leak.

Summary:
this is memory leak fix on gengrid item move.
when animation reached 1.0, it finish all animation and returns EINA_FALSE to delete current animation.

Test Plan: N/A

Reviewers: eagleeye

Reviewed By: eagleeye

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12083
This commit is contained in:
SangHyeon Jade Lee 2020-08-04 14:18:01 +09:00
parent 9dde786ffe
commit 279cc45132
1 changed files with 3 additions and 1 deletions

View File

@ -2849,6 +2849,7 @@ _item_move_cb(void *data, double pos)
double frame = pos;
Evas_Coord xx1, yy1, xx2, yy2;
double dx, dy;
Eina_Bool ret = EINA_TRUE;
switch (sd->reorder.tween_mode)
{
@ -2910,10 +2911,11 @@ _item_move_cb(void *data, double pos)
efl_event_callback_legacy_call
(sd->obj, ELM_GENGRID_EVENT_MOVED, EO_OBJ(sd->reorder.it1));
sd->reorder.running = EINA_FALSE;
ret = EINA_FALSE;
}
_elm_widget_focus_highlight_start(sd->obj);
return EINA_TRUE;
return ret;
}
static void