e_policy_wl: fix resource leak 43/275443/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 25 May 2022 01:44:43 +0000 (10:44 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Wed, 25 May 2022 02:21:49 +0000 (11:21 +0900)
Change-Id: Ic9fddde8cb512dbe0a5e64348ff605a4315d320c

src/bin/e_policy_wl.c

index 1541c9a..e1f6b88 100644 (file)
@@ -7230,6 +7230,7 @@ _e_policy_wl_cb_hook_intercept_show_helper(void *data, E_Client *ec)
    E_Policy_Wl_Tzpol *tzpol;
    E_Policy_Wl_Surface *psurf;
    Eina_Iterator *it;
+   Eina_Bool ret = EINA_TRUE;
 
    it = eina_hash_iterator_data_new(polwl->tzpols);
    EINA_ITERATOR_FOREACH(it, tzpol)
@@ -7242,13 +7243,14 @@ _e_policy_wl_cb_hook_intercept_show_helper(void *data, E_Client *ec)
                   ELOGF("TZPOL",
                         "BACKGROUND State is On, Deny Show",
                         ec);
-                  return EINA_FALSE;
+                  ret = EINA_FALSE;
+                  break;
                }
           }
      }
    eina_iterator_free(it);
 
-   return EINA_TRUE;
+   return ret;
 }
 
 static Eina_Bool