From 8557aaf327c3979309403bb85ed5931fc0fc0b63 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 7 Aug 2020 02:53:21 +0200 Subject: [PATCH] demo: fix memleak --- demos/gtk-demo/listview_words.c | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/gtk-demo/listview_words.c b/demos/gtk-demo/listview_words.c index 350383a4da..1687f4c48e 100644 --- a/demos/gtk-demo/listview_words.c +++ b/demos/gtk-demo/listview_words.c @@ -177,6 +177,7 @@ do_listview_words (GtkWidget *do_widget) stringlist = gtk_string_list_new ((const char **) words); g_strfreev (words); } + g_object_unref (file); filter = gtk_string_filter_new (gtk_property_expression_new (GTK_TYPE_STRING_OBJECT, NULL, "string")); filter_model = gtk_filter_list_model_new (G_LIST_MODEL (stringlist), filter);