jackdanielz pushed a commit to branch elementary-1.15.

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

commit 7789f2a635dd6606decd39f42037be9dbddac973
Author: Daniel Zaoui <daniel.za...@samsung.com>
Date:   Wed Aug 5 10:22:02 2015 +0300

    Tooltip: reset content delete callback directly after invocation
    
    The deletion of the content object can lead to invoke the delete
    callback twice.
    
    @fix
---
 src/lib/els_tooltip.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c
index 9b0193e..32a8dca 100644
--- a/src/lib/els_tooltip.c
+++ b/src/lib/els_tooltip.c
@@ -792,11 +792,10 @@ static void
 _elm_tooltip_data_clean(Elm_Tooltip *tt)
 {
    if (tt->del_cb) tt->del_cb((void *)tt->data, tt->owner, NULL);
+   tt->del_cb = NULL;
+   tt->data = NULL;
 
    _elm_tooltip_content_del(tt);
-
-   tt->data = NULL;
-   tt->del_cb = NULL;
 }
 
 EAPI void

-- 


Reply via email to