mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-06 03:25:31 +00:00
call-window: Reference selector item widget in creation callback
The return value of this callback, used for the call selector flow box, should have a reference added to it. The callback's return value is annotated as "transfer full".
This commit is contained in:
parent
ef976cee04
commit
3917edbcdb
1 changed files with 4 additions and 1 deletions
|
@ -110,7 +110,10 @@ static GtkWidget *
|
|||
call_holders_create_widget_cb (CallsCallHolder *holder,
|
||||
CallsCallWindow *self)
|
||||
{
|
||||
return GTK_WIDGET (calls_call_holder_get_selector_item (holder));
|
||||
CallsCallSelectorItem *item =
|
||||
calls_call_holder_get_selector_item (holder);
|
||||
g_object_ref (G_OBJECT (item));
|
||||
return GTK_WIDGET (item);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue