[Xfce4-commits] <thunar:master> Unset the startup-id data after using it.

Nick Schermer noreply at xfce.org
Tue Oct 20 18:06:01 CEST 2009


Updating branch refs/heads/master
         to f22a0b076116a0dc6861be7e46283903cf8dc759 (commit)
       from 829e4d2f87f23fce080ae5ff80234507a746d626 (commit)

commit f22a0b076116a0dc6861be7e46283903cf8dc759
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Oct 20 18:03:16 2009 +0200

    Unset the startup-id data after using it.
    
    Else we use freed data and thus receive a completly
    broken startup-id.

 thunar/thunar-application.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/thunar/thunar-application.c b/thunar/thunar-application.c
index 0004a78..dc12c08 100644
--- a/thunar/thunar-application.c
+++ b/thunar/thunar-application.c
@@ -1071,10 +1071,6 @@ thunar_application_process_files_finish (ThunarBrowser *browser,
   /* determine and the startup id of the file */
   startup_id = g_object_get_qdata (G_OBJECT (file), thunar_application_startup_id_quark);
 
-  /* unset the startup id */
-  if (startup_id != NULL)
-    g_object_set_qdata (G_OBJECT (file), thunar_application_startup_id_quark, NULL);
-
   /* check if resolving/mounting failed */
   if (error != NULL)
     {
@@ -1109,6 +1105,10 @@ thunar_application_process_files_finish (ThunarBrowser *browser,
           thunar_application_process_files (application);
         }
     }
+
+  /* unset the startup id */
+  if (startup_id != NULL)
+    g_object_set_qdata (G_OBJECT (file), thunar_application_startup_id_quark, NULL);
 }
 
 



More information about the Xfce4-commits mailing list