better fix for exec client removal: don't remove if exec is deleted

This commit is contained in:
Mike Blumenkrantz 2014-02-18 06:56:54 -05:00
parent fba7100590
commit 0bd9052c7e
1 changed files with 4 additions and 4 deletions

View File

@ -489,11 +489,11 @@ _e_client_del(E_Client *ec)
e_exec_phony_del(ec->exe_inst);
else
{
ec->exe_inst->clients = eina_list_remove(ec->exe_inst->clients, ec);
if (ec->exe_inst->deleted)
e_object_unref(E_OBJECT(ec));
if (!ec->exe_inst->deleted)
ec->exe_inst->clients = eina_list_remove(ec->exe_inst->clients, ec);
}
ec->exe_inst = NULL;
if (!ec->exe_inst->deleted)
ec->exe_inst = NULL;
}
if (ec->cur_mouse_action)