diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 4d735264da028af0bf42c05a3f67589abf0e0831..5fa0b55c0a112b13a4e53ae35ff46950a9e86e27 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -3659,12 +3659,11 @@ thunar_window_current_directory_changed (ThunarFile   *current_directory,
   else
     name = thunar_file_get_display_name (current_directory);
 
-  g_free (parse_name);
-
   /* set window title */
   title = g_strdup_printf ("%s - %s", name, "Thunar");
   gtk_window_set_title (GTK_WINDOW (window), title);
   g_free (title);
+  g_free (parse_name);
 
   /* set window icon */
   thunar_window_update_window_icon (window);