hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=512e13a6269947d6d331c4013905d8c8384c5138

commit 512e13a6269947d6d331c4013905d8c8384c5138
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Sun May 8 02:36:52 2016 +0900

    redoundo: fix invalid timer usage.
    
    don't access freed timer.
    
    @fix
---
 src/lib/redoundo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/redoundo.c b/src/lib/redoundo.c
index d53a484..314ce57 100644
--- a/src/lib/redoundo.c
+++ b/src/lib/redoundo.c
@@ -44,10 +44,9 @@ Eina_Bool
 _input_timer_cb(void *data)
 {
    redoundo_data *rd = (redoundo_data *)data;
+   rd->smart.timer = NULL;
    if (!rd->smart.continues_input) return ECORE_CALLBACK_CANCEL;
    rd->smart.continues_input = EINA_FALSE;
-   ecore_timer_del(rd->smart.timer);
-   rd->smart.timer = NULL;
    return ECORE_CALLBACK_CANCEL;
 }
 
@@ -424,6 +423,7 @@ redoundo_clear(redoundo_data *rd)
      }
    rd->internal_change = EINA_FALSE;
    ecore_timer_del(rd->smart.timer);
+   rd->smart.timer = NULL;
 }
 
 void

-- 


Reply via email to