raster pushed a commit to branch elementary-1.16.

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

commit 38aa88f1a6f7fb2c39df590090cb50ad4fc233ac
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 4e6a443..0b3bb45 100644
--- a/src/lib/els_cursor.c
+++ b/src/lib/els_cursor.c
@@ -207,6 +207,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