summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-25 13:55:41 +0100
committerVictor Kareh <[email protected]>2020-12-11 10:40:04 -0500
commit69c70e1d2279f835901a144acc87a50147bcf927 (patch)
tree3da2102db381536942273ef393871f2d5bf0b047
parent614af3e048be34e5c67792410709f470b420a28f (diff)
downloadmate-control-center-69c70e1d2279f835901a144acc87a50147bcf927.tar.bz2
mate-control-center-69c70e1d2279f835901a144acc87a50147bcf927.tar.xz
mate-wm-manager: Use g_list_free_full
-rw-r--r--libwindow-settings/mate-wm-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libwindow-settings/mate-wm-manager.c b/libwindow-settings/mate-wm-manager.c
index 457d8c0d..ce622b04 100644
--- a/libwindow-settings/mate-wm-manager.c
+++ b/libwindow-settings/mate-wm-manager.c
@@ -198,8 +198,7 @@ scan_wm_directory (const gchar *directory, gboolean is_user)
tmp_list = tmp_list->next;
}
- g_list_foreach (files, (GFunc) g_free, NULL);
- g_list_free (files);
+ g_list_free_full (files, g_free);
}
void