diff options
Diffstat (limited to 'src/nautilus-window-slot.c')
-rw-r--r-- | src/nautilus-window-slot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index 91a15851a..d06032b71 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -1260,7 +1260,7 @@ handle_regular_file_if_needed (NautilusWindowSlot *slot, slot->details->pending_location = nautilus_file_get_parent_location (file); slot->details->pending_selection = g_list_prepend (NULL, nautilus_file_ref (file)); - slot->details->determine_view_file = parent_file; + slot->details->determine_view_file = nautilus_file_ref (parent_file); slot->details->pending_scroll_to = nautilus_file_get_uri (file); nautilus_file_invalidate_all_attributes (slot->details->determine_view_file); @@ -1273,6 +1273,8 @@ handle_regular_file_if_needed (NautilusWindowSlot *slot, needs_regular_file_handling = TRUE; } + nautilus_file_unref (parent_file); + return needs_regular_file_handling; } |