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, 2 insertions, 3 deletions
diff --git a/libcaja-private/caja-emblem-utils.c b/libcaja-private/caja-emblem-utils.c
index f837df69..2f4aa054 100644
--- a/libcaja-private/caja-emblem-utils.c
+++ b/libcaja-private/caja-emblem-utils.c
@@ -43,8 +43,6 @@
#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"
@@ -395,7 +393,6 @@ caja_emblem_remove_emblem (const char *keyword)
struct stat stat_buf;
struct utimbuf ubuf;
-
dir = g_strdup_printf ("%s/.icons/hicolor/48x48/emblems",
g_get_home_dir ());
stat_dir = g_strdup_printf ("%s/.icons/hicolor",
@@ -425,6 +422,8 @@ caja_emblem_remove_emblem (const char *keyword)
return FALSE;
}
+ g_free (path);
+
/* Touch the toplevel dir */
if (stat (stat_dir, &stat_buf) == 0)
{