forked from enlightenment/enlightenment
client hooks should not continue to be called if the client has been deleted
This commit is contained in:
parent
041763a99b
commit
8814d3ad28
|
@ -321,6 +321,9 @@ _e_client_hook_call(E_Client_Hook_Point hookpoint, E_Client *ec)
|
||||||
{
|
{
|
||||||
if (ch->delete_me) continue;
|
if (ch->delete_me) continue;
|
||||||
ch->func(ch->data, ec);
|
ch->func(ch->data, ec);
|
||||||
|
if ((hookpoint != E_CLIENT_HOOK_DEL) &&
|
||||||
|
e_object_is_del(E_OBJECT(ec)))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
_e_client_hooks_walking--;
|
_e_client_hooks_walking--;
|
||||||
if ((_e_client_hooks_walking == 0) && (_e_client_hooks_delete > 0))
|
if ((_e_client_hooks_walking == 0) && (_e_client_hooks_delete > 0))
|
||||||
|
|
Loading…
Reference in New Issue