summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-tree-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file-manager/fm-tree-view.c')
-rw-r--r--src/file-manager/fm-tree-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file-manager/fm-tree-view.c b/src/file-manager/fm-tree-view.c
index 6f8f776c..edc5b138 100644
--- a/src/file-manager/fm-tree-view.c
+++ b/src/file-manager/fm-tree-view.c
@@ -236,7 +236,7 @@ static gboolean
show_selection_idle_callback (gpointer callback_data)
{
FMTreeView *view;
- CajaFile *file, *old_file;
+ CajaFile *file;
GtkTreeIter iter;
GtkTreePath *path, *sort_path;
@@ -252,6 +252,8 @@ show_selection_idle_callback (gpointer callback_data)
if (!caja_file_is_directory (file))
{
+ CajaFile *old_file;
+
old_file = file;
file = caja_file_get_parent (file);
caja_file_unref (old_file);