mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-06 03:25:31 +00:00
call-window: Fix leak of references returned by g_list_model_get_item()
Closes #18
This commit is contained in:
parent
8d3ec069eb
commit
f60187c547
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue