Index: thunar/thunar-standard-view.c =================================================================== --- thunar/thunar-standard-view.c (revision 18964) +++ thunar/thunar-standard-view.c (working copy) @@ -2167,6 +2167,7 @@ * of the list model. */ row = gtk_tree_row_reference_new (GTK_TREE_MODEL (standard_view->model), path); + gtk_tree_path_free (path); /* try to rename the file */ if (!thunar_file_rename (file, text, &error)) @@ -2193,10 +2194,14 @@ /* release the row reference */ gtk_tree_row_reference_free (row); } + else + { + /* drop the tree path */ + gtk_tree_path_free (path); + } /* cleanup */ g_object_unref (G_OBJECT (file)); - gtk_tree_path_free (path); }