mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
file-info: Don't leak the filename if thumbnailing failed
Fixes: https://bugzilla.gnome.org/686895
This commit is contained in:
parent
cdc95d31e6
commit
51d0830102
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user