Tooltip: reset content delete callback directly after invocation

The deletion of the content object can lead to invoke the delete
callback twice.

@fix
This commit is contained in:
Daniel Zaoui 2015-08-05 10:22:02 +03:00
parent 3fb443df95
commit 70ea7962f9
1 changed files with 2 additions and 3 deletions

View 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