From f4e8373eaa20970b99be2747fa3ed3d02ce4561c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sat, 14 Sep 2024 11:01:12 +0200 Subject: [PATCH] history-box: Keep ref on list model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gtk_*list_model_new() functions are `transfer: full` for the model. Signed-off-by: Guido Günther Part-of: --- src/calls-history-box.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calls-history-box.c b/src/calls-history-box.c index b22878f..53d1b43 100644 --- a/src/calls-history-box.c +++ b/src/calls-history-box.c @@ -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);