file-info: Don't leak the filename if thumbnailing failed

Fixes: https://bugzilla.gnome.org/686895
This commit is contained in:
Debarshi Ray 2012-11-20 00:11:56 +01:00
parent cdc95d31e6
commit 51d0830102

View File

@ -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",