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:
Carsten Haitzler 2015-12-28 17:39:50 +09:00
parent 8075831e35
commit 087b81a2e6
1 changed files with 1 additions and 0 deletions

View File

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