summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Sadiq <sadiq@sadiqpk.org>2020-03-22 10:42:01 +0530
committerMohammed Sadiq <sadiq@sadiqpk.org>2020-03-22 14:05:56 +0530
commitcfc44e09a0f990892873f91ea1af0c250cd26a67 (patch)
tree4c7037021b64d4645ba6408fb2c02f1f47e2ec65
parent92b50c5e2a404911015b78ae43e66adb0b3eb33b (diff)
downloadgtk+-cfc44e09a0f990892873f91ea1af0c250cd26a67.tar.gz
singleselection: Fix a memory leak
-rw-r--r--gtk/gtksingleselection.c3
1 files changed, 3 insertions, 0 deletions
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)
{