singleselection: Fix a memory leak

This commit is contained in:
Mohammed Sadiq 2020-03-22 10:42:01 +05:30
parent 92b50c5e2a
commit cfc44e09a0

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)
{