summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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