From e519e5489d5670f1de6ce1a766be229962ab68a3 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 7 Jul 2025 12:58:59 +0100 Subject: [PATCH] glocalfile: Fix another leak in g_local_file_set_display_name() Signed-off-by: Philip Withnall Fixes: #3721 --- gio/glocalfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/glocalfile.c b/gio/glocalfile.c index ab5ff8f9f..1e5c30154 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -1197,6 +1197,7 @@ g_local_file_set_display_name (GFile *file, { g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_EXISTS, _("Can’t rename file, filename already exists")); + g_object_unref (new_file); return NULL; }