summaryrefslogtreecommitdiff
path: root/components/tree/nautilus-tree-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/tree/nautilus-tree-model.c')
-rw-r--r--components/tree/nautilus-tree-model.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/tree/nautilus-tree-model.c b/components/tree/nautilus-tree-model.c
index e610e7156..a70f6b2ea 100644
--- a/components/tree/nautilus-tree-model.c
+++ b/components/tree/nautilus-tree-model.c
@@ -177,7 +177,9 @@ nautilus_tree_model_new (const char *root_uri)
{
NautilusTreeModel *model;
- model = NAUTILUS_TREE_MODEL (gtk_type_new (NAUTILUS_TYPE_TREE_MODEL));
+ model = NAUTILUS_TREE_MODEL (gtk_object_new (NAUTILUS_TYPE_TREE_MODEL, NULL));
+ gtk_object_ref (GTK_OBJECT (model));
+ gtk_object_sink (GTK_OBJECT (model));
nautilus_tree_model_set_root_uri (model, root_uri);