mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 13:25:35 +00:00
history-box: Keep ref on list model
The gtk_*list_model_new() functions are `transfer: full` for the model. Signed-off-by: Guido Günther <agx@sigxcpu.org> Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/756>
This commit is contained in:
parent
12812f64c6
commit
f4e8373eaa
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ constructed (GObject *object)
|
||||||
|
|
||||||
G_OBJECT_CLASS (calls_history_box_parent_class)->constructed (object);
|
G_OBJECT_CLASS (calls_history_box_parent_class)->constructed (object);
|
||||||
|
|
||||||
self->slice_model = gtk_slice_list_model_new (self->model,
|
self->slice_model = gtk_slice_list_model_new (g_object_ref (self->model),
|
||||||
0,
|
0,
|
||||||
CALLS_HISTORY_SIZE_INITIAL);
|
CALLS_HISTORY_SIZE_INITIAL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue