diff options
author | Debarshi Ray <debarshir@gnome.org> | 2012-11-20 00:11:56 +0100 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2012-11-20 00:24:52 +0100 |
commit | 51d083010286cb4bdc0d7b0b2323e25a94115087 (patch) | |
tree | 2a3461c1ddc612438fe25262aec967aadfa89941 /gio | |
parent | cdc95d31e61d6ff9425011af7904cb342e4a3a86 (diff) | |
download | glib-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.c | 1 |
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", |