Commit f22a0b07 authored by Nick Schermer's avatar Nick Schermer

Unset the startup-id data after using it.

Else we use freed data and thus receive a completly
broken startup-id.
parent 829e4d2f
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment