mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 15:18:55 +02:00
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:
@@ -1197,6 +1197,7 @@ g_local_file_set_display_name (GFile *file,
|
|||||||
{
|
{
|
||||||
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_EXISTS,
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_EXISTS,
|
||||||
_("Can’t rename file, filename already exists"));
|
_("Can’t rename file, filename already exists"));
|
||||||
|
g_object_unref (new_file);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user