From de440fa5ec040f93aa6ed003b4bc4bf244e764d4 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Fri, 24 Jul 2015 19:26:11 +0900 Subject: [PATCH] timeout_handler: set to NULL before returning Change-Id: Ie330ba933aff88f0020401d0f3b66dc7b18d1466 Signed-off-by: Minkyu Kang --- src/util/timeout_handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/timeout_handler.c b/src/util/timeout_handler.c index c4805f1..d66ac3b 100644 --- a/src/util/timeout_handler.c +++ b/src/util/timeout_handler.c @@ -43,11 +43,12 @@ static Eina_Bool _timer_cb(void *data) handle = data; + handle->timer = NULL; + if (!handle->enable) return ECORE_CALLBACK_CANCEL; handle->timeout_cb(handle->timeout_data, 0, NULL); - handle->timer = NULL; return ECORE_CALLBACK_CANCEL; } -- 2.7.4