Browse Source

* Ok, now without segfault.

(Old svn revision: 26388)
upstream/xfce4-panel-4.10.1
Nick Schermer 16 years ago
parent
commit
020ffa5167
  1. 10
      panel/panel-app.c

10
panel/panel-app.c

@ -699,8 +699,8 @@ panel_app_run (gchar *client_id)
/* session management */
restart_command = g_new (gchar *, 3);
restart_command[0] = "xfce4-panel";
restart_command[1] = "-r";
restart_command[0] = g_strdup ("xfce4-panel");
restart_command[1] = g_strdup ("-r");
restart_command[2] = NULL;
panel_app.session_client =
@ -711,7 +711,7 @@ panel_app_run (gchar *client_id)
PACKAGE_NAME,
NULL,
restart_command,
restart_command,
g_strdupv (restart_command),
NULL,
NULL,
NULL);
@ -721,6 +721,10 @@ panel_app_run (gchar *client_id)
MARK("connect to session manager");
if (!session_init (panel_app.session_client))
{
/* no indeed we're not connected... */
panel_app.session_client->current_state = SESSION_CLIENT_DISCONNECTED;
/* cleanup */
client_session_free (panel_app.session_client);
panel_app.session_client = NULL;
}

Loading…
Cancel
Save