diff --git a/src/utils.c b/src/utils.c
index d46f521f53b9ff9e816e9b1898d7145d85ef6b58..3f327f4b0b80914025e6e925452114ed56ef1417 100644 (file)
--- a/src/utils.c
+++ b/src/utils.c
GList *
string_list_free(GList *string_list)
{
- GList *list = g_list_first(string_list);
-
- while (list) {
- g_free(list->data);
- list->data = NULL;
- list = list->next;
- }
-
- g_list_free(string_list);
+ g_list_free_full(string_list, g_free);
return NULL;
}