diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2020-03-22 10:42:01 +0530 |
---|---|---|
committer | Mohammed Sadiq <sadiq@sadiqpk.org> | 2020-03-22 14:05:56 +0530 |
commit | cfc44e09a0f990892873f91ea1af0c250cd26a67 (patch) | |
tree | 4c7037021b64d4645ba6408fb2c02f1f47e2ec65 /gtk/gtksingleselection.c | |
parent | 92b50c5e2a404911015b78ae43e66adb0b3eb33b (diff) | |
download | gtk+-cfc44e09a0f990892873f91ea1af0c250cd26a67.tar.gz |
singleselection: Fix a memory leak
Diffstat (limited to 'gtk/gtksingleselection.c')
-rw-r--r-- | gtk/gtksingleselection.c | 3 |
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) { |