forked from AuroraMiddleware/gtk
placessidebar: Plug a leak
g_list_model_get_item is transfer full.
This commit is contained in:
parent
497d137fb8
commit
c55dd104d4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user