From 0d845f381664a8b45b309ce502a7e99394eb77e2 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Sun, 6 Jul 2025 17:34:48 -0500 Subject: [PATCH] Fix GFile leak in g_local_file_set_display_name() Fixes #3721 --- gio/glocalfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/glocalfile.c b/gio/glocalfile.c index d9903b4e4..ab5ff8f9f 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -1189,6 +1189,7 @@ g_local_file_set_display_name (GFile *file, if (errsv != ENOENT) { g_set_io_error (error, _("Error renaming file %s: %s"), new_file, errsv); + g_object_unref (new_file); return NULL; } }