mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 02:36:19 +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);
|
_g_file_info_set_attribute_byte_string_by_id (info, G_FILE_ATTRIBUTE_ID_THUMBNAIL_PATH, filename);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
g_free (filename);
|
||||||
filename = g_build_filename (g_get_user_cache_dir (),
|
filename = g_build_filename (g_get_user_cache_dir (),
|
||||||
"thumbnails", "fail",
|
"thumbnails", "fail",
|
||||||
"gnome-thumbnail-factory",
|
"gnome-thumbnail-factory",
|
||||||
|
Loading…
Reference in New Issue
Block a user