fixes one more ccrash. nautilus_model_node_get_file does not return a

2000-09-08  Mathieu Lacage  <mathieu@eazel.com>

	* components/tree/nautilus-tree-view.c: fixes one more ccrash.
	nautilus_model_node_get_file does not return a refed NautilusFile
	for you. So, must not unref it.
This commit is contained in:
Mathieu Lacage 2000-09-08 18:49:17 +00:00 committed by Mathieu Lacage
parent 33d4296aab
commit 8e47e2a792
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2000-09-08 Mathieu Lacage <mathieu@eazel.com>
* components/tree/nautilus-tree-view.c: fixes one more ccrash.
nautilus_model_node_get_file does not return a refed NautilusFile
for you. So, must not unref it.
2000-09-08 Mathieu Lacage <mathieu@eazel.com>
* components/tree/nautilus-tree-view.c: fix bug 2918.

View file

@ -2067,14 +2067,11 @@ nautilus_tree_view_find_drop_target (NautilusTreeView *tree_view,
if ( !nautilus_drag_can_accept_items
(file, selection_list)) {
nautilus_file_unref (file);
return NULL;
}
target_uri = nautilus_file_get_uri (file);
nautilus_file_unref (file);
return target_uri;
}