forked from AuroraMiddleware/gtk
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:
parent
691ab421fb
commit
f211d71f74
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user