forked from AuroraMiddleware/gtk
singleselection: Fix a memory leak
This commit is contained in:
parent
92b50c5e2a
commit
cfc44e09a0
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user