placessidebar: Plug a leak

g_list_model_get_item is transfer full.
This commit is contained in:
Matthias Clasen 2020-07-16 08:47:36 -04:00
parent 497d137fb8
commit c55dd104d4

View File

@ -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;