glocalfile: Fix another leak in g_local_file_set_display_name()

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3721
This commit is contained in:
Philip Withnall
2025-07-07 12:58:59 +01:00
parent 4f6dbf1d5e
commit e519e5489d

View File

@@ -1197,6 +1197,7 @@ g_local_file_set_display_name (GFile *file,
{
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_EXISTS,
_("Cant rename file, filename already exists"));
g_object_unref (new_file);
return NULL;
}