From c55dd104d43241276295e6a6fd2084ed6d80cfb2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 16 Jul 2020 08:47:36 -0400 Subject: [PATCH] placessidebar: Plug a leak g_list_model_get_item is transfer full. --- gtk/gtkplacessidebar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 7c528252e2..e22d1ca188 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -767,6 +767,8 @@ add_application_shortcuts (GtkPlacesSidebar *sidebar) GFile *file = g_list_model_get_item (G_LIST_MODEL (sidebar->shortcuts), i); ShortcutData *data; + g_object_unref (file); + if (!should_show_file (sidebar, file)) continue;