GTKColumnView / Sorter no works

I copied this example. The following line is there. sorter = g_object_ref(gtk_column_view_get_sorter(GTK_COLUMN_VIEW(cv)));
But in this version it has exactly the same effect. g_list_store_remove and g_list_store_remove_all clean up properly, but nothing is cleaned up when you exit.

I also tried the following. Then it cleans up except for one entry. If there are 4 entries, it takes 3.
g_signal_connect_swapped(scrolled_window, "destroy", G_CALLBACK(g_object_unref), model);
You could live with that in a pinch, but it’s not clean.