summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-emblem-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-emblem-utils.c')
-rw-r--r--libcaja-private/caja-emblem-utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcaja-private/caja-emblem-utils.c b/libcaja-private/caja-emblem-utils.c
index dd70dbc3..f837df69 100644
--- a/libcaja-private/caja-emblem-utils.c
+++ b/libcaja-private/caja-emblem-utils.c
@@ -43,6 +43,8 @@
#include "caja-file.h"
#include "caja-emblem-utils.h"
+#include <src/glibcompat.h> /* for g_list_free_full */
+
#define EMBLEM_NAME_TRASH "emblem-trash"
#define EMBLEM_NAME_SYMLINK "emblem-symbolic-link"
#define EMBLEM_NAME_NOREAD "emblem-noread"
@@ -119,8 +121,7 @@ is_reserved_keyword (const char *keyword)
result = g_list_find_custom (available,
(char *) icon_name,
(GCompareFunc) g_ascii_strcasecmp) != NULL;
- g_list_foreach(available, (GFunc) g_free, NULL);
- g_list_free(available);
+ g_list_free_full (available, g_free);
g_free (icon_name);
return result;
}