From: Junseok, Kim Date: Tue, 26 Nov 2019 11:01:35 +0000 (+0900) Subject: e_client: check e_object_del when focus_unset hook call X-Git-Tag: submit/tizen/20200625.115030~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf87ed2cbf28f8a187d14a11ab63941d2a59e862;p=platform%2Fupstream%2Fenlightenment.git e_client: check e_object_del when focus_unset hook call Change-Id: I8f0bf5e858fda2741222cf0b050ca1820972f09a (cherry picked from commit d2071244c0904d85681109965fff0884411736b9) --- diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 722c974dc7..38f27edad2 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -5556,7 +5556,8 @@ e_client_focused_set(E_Client *ec) e_client_unfullscreen(ec_unfocus); } - _e_client_hook_call(E_CLIENT_HOOK_FOCUS_UNSET, ec_unfocus); + if (!e_object_is_del(E_OBJECT(ec_unfocus))) + _e_client_hook_call(E_CLIENT_HOOK_FOCUS_UNSET, ec_unfocus); /* only send event here if we're not being deleted */ if ((!e_object_is_del(E_OBJECT(ec_unfocus))) && (e_object_ref_get(E_OBJECT(ec_unfocus)) > 0))