summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2012-11-20 00:11:56 +0100
committerDebarshi Ray <debarshir@gnome.org>2012-11-20 00:24:52 +0100
commit51d083010286cb4bdc0d7b0b2323e25a94115087 (patch)
tree2a3461c1ddc612438fe25262aec967aadfa89941 /gio
parentcdc95d31e61d6ff9425011af7904cb342e4a3a86 (diff)
downloadglib-51d083010286cb4bdc0d7b0b2323e25a94115087.tar.gz
file-info: Don't leak the filename if thumbnailing failed
Fixes: https://bugzilla.gnome.org/686895
Diffstat (limited to 'gio')
-rw-r--r--gio/glocalfileinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 306fb580d..9c974953c 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -1308,6 +1308,7 @@ get_thumbnail_attributes (const char *path,
_g_file_info_set_attribute_byte_string_by_id (info, G_FILE_ATTRIBUTE_ID_THUMBNAIL_PATH, filename);
else
{
+ g_free (filename);
filename = g_build_filename (g_get_user_cache_dir (),
"thumbnails", "fail",
"gnome-thumbnail-factory",