From cfc44e09a0f990892873f91ea1af0c250cd26a67 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Sun, 22 Mar 2020 10:42:01 +0530 Subject: singleselection: Fix a memory leak --- gtk/gtksingleselection.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk/gtksingleselection.c') diff --git a/gtk/gtksingleselection.c b/gtk/gtksingleselection.c index f2d0d47f1c..63db37d0de 100644 --- a/gtk/gtksingleselection.c +++ b/gtk/gtksingleselection.c @@ -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) { -- cgit v1.2.1