rotation: remove show_grab when ec is deleted 27/275427/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 25 May 2022 00:54:17 +0000 (09:54 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 25 May 2022 00:54:17 +0000 (09:54 +0900)
There was a crash issue if the ec was destroyed while pending show.
This will resolve it.

Change-Id: I41046590c757f2181c83e973352f9cd9921642e5

src/rotation/e_mod_rotation_wl.c

index 68a5d43..b5fb13e 100644 (file)
@@ -2560,6 +2560,9 @@ _rot_hook_client_del(void *d EINA_UNUSED, E_Client *ec)
         EINA_LIST_FREE(ext_rot->rotation_list, res)
            wl_resource_set_user_data(res, NULL);
 
+        if (ext_rot->show_grab)
+          E_FREE_FUNC(ext_rot->show_grab, e_policy_visibility_client_grab_release);
+
         eina_hash_del_by_key(rot_hash, &ec);
      }