Tooltip: reset content delete callback directly after invocation
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Wed, 5 Aug 2015 07:22:02 +0000 (10:22 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Wed, 5 Aug 2015 07:41:38 +0000 (10:41 +0300)
The deletion of the content object can lead to invoke the delete
callback twice.

@fix

src/lib/els_tooltip.c

index 9b0193e..32a8dca 100644 (file)
@@ -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