forked from enlightenment/efl
elm - cursor - fix job handling to not leave rogue jobs
valgrind pointed out an issue in elm cursor handling. this fixes that. the handle was lost, yet it was still around due to it being overwritten without deletion. @fix
This commit is contained in:
parent
8075831e35
commit
087b81a2e6
|
@ -236,6 +236,7 @@ static void
|
|||
_elm_cursor_hot_change(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Cursor *cur = data;
|
||||
if (cur->hotupdate_job) ecore_job_del(cur->hotupdate_job);
|
||||
cur->hotupdate_job = ecore_job_add(_elm_cursor_set_hot_spots, data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue