e_client: check e_object_del when focus_unset hook call 08/237108/1
authorJunseok, Kim <juns.kim@samsung.com>
Tue, 26 Nov 2019 11:01:35 +0000 (20:01 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Thu, 25 Jun 2020 05:33:54 +0000 (05:33 +0000)
Change-Id: I8f0bf5e858fda2741222cf0b050ca1820972f09a
(cherry picked from commit d2071244c0904d85681109965fff0884411736b9)

src/bin/e_client.c

index 722c974dc712620d51f0d225c4c390d21671ad72..38f27edad226976fc0e54ca5f74565116eb01953 100644 (file)
@@ -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))