aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-08-03 10:15:41 -0400
committerChris Michael <cp.michael@samsung.com>2017-08-03 10:15:41 -0400
commit0bd8259da885c7cc81293c9d9e4fe0fa87dfd855 (patch)
tree66b628326d59d388bdbe5fc54b02e9d0c5afa187
parentefl: terrible kludge so avoid termination crash on osx (diff)
downloadefl-0bd8259da885c7cc81293c9d9e4fe0fa87dfd855.tar.gz
ecore-wl2: Rename local function and make it static
As this function is not called from anywhere outside of ecore_wl2_window.c file, this can be declared static. NB: This patch also changes the function name to match the library (ecore_wl2). Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 0c48718770..f12d73230c 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -702,10 +702,11 @@ ecore_wl2_window_hide(Ecore_Wl2_Window *window)
window->configure_ack = NULL;
}
-void
-_ecore_wl_window_aux_hint_free(Ecore_Wl2_Window *win)
+static void
+_ecore_wl2_window_aux_hint_free(Ecore_Wl2_Window *win)
{
const char *supported;
+
EINA_LIST_FREE(win->supported_aux_hints, supported)
if (supported) eina_stringshare_del(supported);
}
@@ -728,7 +729,7 @@ ecore_wl2_window_free(Ecore_Wl2_Window *window)
EINA_INLIST_FOREACH_SAFE(window->subsurfs, tmp, subsurf)
_ecore_wl2_subsurf_free(subsurf);
- _ecore_wl_window_aux_hint_free(window);
+ _ecore_wl2_window_aux_hint_free(window);
if (window->uuid && window->surface && window->display->wl.session_recovery)
zwp_e_session_recovery_destroy_uuid(window->display->wl.session_recovery,