e_comp_wl_data: Erase unnecessary checking 92/300192/2
authorJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 18 Oct 2023 06:53:33 +0000 (15:53 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 18 Oct 2023 07:36:04 +0000 (07:36 +0000)
Avoid mutex lock lock error by unnecessary checking.

Change-Id: I0734580de3cc22e67bedc17d7268c206b81d1012

src/bin/e_comp_wl_data.c

index 3424112..c61f73d 100644 (file)
@@ -1723,12 +1723,10 @@ e_comp_wl_data_secondary_remove(E_Client *ec)
    DBG("remove secondary %s(%p). listcount(%d)",
        e_client_util_name_get(ec), ec, eina_list_count(e_comp_wl->selection.secondary_list));
 
-   if (e_comp_wl->selection.secondary_sent == e_comp_wl_client_surface_get(ec))
-     e_comp_wl->selection.secondary_sent = NULL;
-
    if (eina_list_count(e_comp_wl->selection.secondary_list) == 0)
      {
         eina_list_free(e_comp_wl->selection.secondary_list);
         e_comp_wl->selection.secondary_list = NULL;
+        e_comp_wl->selection.secondary_sent = NULL;
      }
 }