1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-10-22 12:45:23 +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:
Guido Günther 2024-09-14 11:01:12 +02:00 committed by Marge Bot
parent 12812f64c6
commit f4e8373eaa

View file

@ -204,7 +204,7 @@ constructed (GObject *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,
CALLS_HISTORY_SIZE_INITIAL);