From 8401f5732d1b4b0eda453f6b3e50fa3564ae970e Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 7 Mar 2019 17:22:48 +0100 Subject: Replace meta_free_gslist_and_elements with g_slist_free_full Use g_slist_free_full --- src/core/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/window.c') diff --git a/src/core/window.c b/src/core/window.c index 01f1a6cb..fce395b9 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -1072,7 +1072,7 @@ meta_window_free (MetaWindow *window, if (window->struts) { - meta_free_gslist_and_elements (window->struts); + g_slist_free_full (window->struts, g_free); window->struts = NULL; meta_topic (META_DEBUG_WORKAREA, @@ -6289,7 +6289,7 @@ meta_window_update_struts (MetaWindow *window) changed = (old_iter != NULL || new_iter != NULL); /* Update appropriately */ - meta_free_gslist_and_elements (old_struts); + g_slist_free_full (old_struts, g_free); window->struts = new_struts; if (changed) { -- cgit v1.2.1