summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-12-28 17:39:50 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-12-28 17:39:50 +0900
commite218ca7d9ef920be823900229eba35dc74e5a9c4 (patch)
treed61ebad188857446d8289c6db49cd217a1b70542
parent5b0c5c23b473f2cd13fc972a2d685133b4f93dcc (diff)
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
-rw-r--r--src/lib/els_cursor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/els_cursor.c b/src/lib/els_cursor.c
index 3b26209cc..502c08922 100644
--- a/src/lib/els_cursor.c
+++ b/src/lib/els_cursor.c
@@ -236,6 +236,7 @@ static void
236_elm_cursor_hot_change(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 236_elm_cursor_hot_change(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
237{ 237{
238 Elm_Cursor *cur = data; 238 Elm_Cursor *cur = data;
239 if (cur->hotupdate_job) ecore_job_del(cur->hotupdate_job);
239 cur->hotupdate_job = ecore_job_add(_elm_cursor_set_hot_spots, data); 240 cur->hotupdate_job = ecore_job_add(_elm_cursor_set_hot_spots, data);
240} 241}
241 242