From 51d083010286cb4bdc0d7b0b2323e25a94115087 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Tue, 20 Nov 2012 00:11:56 +0100 Subject: [PATCH] file-info: Don't leak the filename if thumbnailing failed Fixes: https://bugzilla.gnome.org/686895 --- gio/glocalfileinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index 306fb58..9c97495 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", -- 2.7.4