Merge branch 'wip/sadiq/fix-leak' into 'master'

singleselection: Fix a memory leak

See merge request GNOME/gtk!1554
This commit is contained in:
Timm Bäder 2020-03-25 09:13:50 +00:00
commit c155ac98c8

View File

@ -240,8 +240,11 @@ gtk_single_selection_items_changed_cb (GListModel *model,
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SELECTED]);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SELECTED_ITEM]);
}
g_object_unref (item);
break;
}
g_object_unref (item);
}
if (i == added)
{