summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-emblem-utils.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-12-03 16:05:43 +0300
committerinfirit <[email protected]>2014-12-10 10:38:37 +0100
commit523ca6754f1f1f5e86367c644bb721b20f5fbebd (patch)
treec34b3bae093a37a7d7594cc4efa3168726ce5340 /libcaja-private/caja-emblem-utils.c
parent78661bd703b26343621b209f4f13e5e9fcbad802 (diff)
downloadcaja-523ca6754f1f1f5e86367c644bb721b20f5fbebd.tar.bz2
caja-523ca6754f1f1f5e86367c644bb721b20f5fbebd.tar.xz
libcaja-private: don't leak memory
Diffstat (limited to 'libcaja-private/caja-emblem-utils.c')
-rw-r--r--libcaja-private/caja-emblem-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcaja-private/caja-emblem-utils.c b/libcaja-private/caja-emblem-utils.c
index f837df69..951887aa 100644
--- a/libcaja-private/caja-emblem-utils.c
+++ b/libcaja-private/caja-emblem-utils.c
@@ -395,7 +395,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 +424,8 @@ caja_emblem_remove_emblem (const char *keyword)
return FALSE;
}
+ g_free (path);
+
/* Touch the toplevel dir */
if (stat (stat_dir, &stat_buf) == 0)
{