summaryrefslogtreecommitdiff
path: root/pluma/pluma-prefs-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-prefs-manager.c')
-rw-r--r--pluma/pluma-prefs-manager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pluma/pluma-prefs-manager.c b/pluma/pluma-prefs-manager.c
index 2bbfbfa2..f150d13b 100644
--- a/pluma/pluma-prefs-manager.c
+++ b/pluma/pluma-prefs-manager.c
@@ -703,8 +703,7 @@ pluma_prefs_manager_get_auto_detected_encodings (void)
tmp = g_slist_next (tmp);
}
- g_slist_foreach (strings, (GFunc) g_free, NULL);
- g_slist_free (strings);
+ g_slist_free_full (strings, g_free);
res = g_slist_reverse (res);
}
@@ -753,8 +752,7 @@ pluma_prefs_manager_get_shown_in_menu_encodings (void)
tmp = g_slist_next (tmp);
}
- g_slist_foreach (strings, (GFunc) g_free, NULL);
- g_slist_free (strings);
+ g_slist_free_full (strings, g_free);
res = g_slist_reverse (res);
}