From f60187c5472e771fb8e1a777d439f407394b0438 Mon Sep 17 00:00:00 2001 From: Bob Ham Date: Mon, 8 Oct 2018 11:18:12 +0000 Subject: [PATCH] call-window: Fix leak of references returned by g_list_model_get_item() Closes #18 --- src/calls-call-window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calls-call-window.c b/src/calls-call-window.c index c5fd6e5..aab09c4 100644 --- a/src/calls-call-window.c +++ b/src/calls-call-window.c @@ -160,6 +160,7 @@ find_call_holder (CallsCallWindow *self, for (position = 0; position < n_items; ++position) { holder = CALLS_CALL_HOLDER (g_list_model_get_item (model, position)); + g_object_unref (G_OBJECT (holder)); if (predicate (holder, user_data)) {