treelistmodel: Fix memory leak

gtk_tree_list_model_init_node() increases the reference count
of the model passed. Let's not do that, and let it take the
model passed.
This commit is contained in:
Mohammed Sadiq 2018-09-18 07:28:56 +05:30
parent 691ab421fb
commit f211d71f74

View File

@ -494,7 +494,7 @@ gtk_tree_list_model_init_node (GtkTreeListModel *list,
gsize i, n;
TreeNode *node;
self->model = g_object_ref (model);
self->model = model;
g_signal_connect (model,
"items-changed",
G_CALLBACK (gtk_tree_list_model_items_changed_cb),