raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=e218ca7d9ef920be823900229eba35dc74e5a9c4

commit e218ca7d9ef920be823900229eba35dc74e5a9c4
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Dec 28 17:39:50 2015 +0900

    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
---
 src/lib/els_cursor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/els_cursor.c b/src/lib/els_cursor.c
index 3b26209..502c089 100644
--- a/src/lib/els_cursor.c
+++ b/src/lib/els_cursor.c
@@ -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);
 }
 

-- 


Reply via email to