client hooks should not continue to be called if the client has been deleted

This commit is contained in:
Mike Blumenkrantz 2014-09-23 13:12:02 -04:00
parent 041763a99b
commit 8814d3ad28
1 changed files with 3 additions and 0 deletions

View File

@ -321,6 +321,9 @@ _e_client_hook_call(E_Client_Hook_Point hookpoint, E_Client *ec)
{
if (ch->delete_me) continue;
ch->func(ch->data, ec);
if ((hookpoint != E_CLIENT_HOOK_DEL) &&
e_object_is_del(E_OBJECT(ec)))
break;
}
_e_client_hooks_walking--;
if ((_e_client_hooks_walking == 0) && (_e_client_hooks_delete > 0))