demo: fix memleak

This commit is contained in:
Benjamin Otte 2020-08-07 02:53:21 +02:00
parent 052962a760
commit 8557aaf327

View File

@ -177,6 +177,7 @@ do_listview_words (GtkWidget *do_widget)
stringlist = gtk_string_list_new ((const char **) words); stringlist = gtk_string_list_new ((const char **) words);
g_strfreev (words); g_strfreev (words);
} }
g_object_unref (file);
filter = gtk_string_filter_new (gtk_property_expression_new (GTK_TYPE_STRING_OBJECT, NULL, "string")); 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); filter_model = gtk_filter_list_model_new (G_LIST_MODEL (stringlist), filter);