Browse Source

* Fix leaks in session management.

(Old svn revision: 26386)
upstream/xfce4-panel-4.10.1
Nick Schermer 15 years ago
parent
commit
b562e4d6fa
  1. 8
      panel/panel-app.c

8
panel/panel-app.c

@ -698,7 +698,7 @@ panel_app_run (gchar *client_id)
TRUE);
/* session management */
restart_command = g_new (gchar *, 2);
restart_command = g_new (gchar *, 3);
restart_command[0] = "xfce4-panel";
restart_command[1] = "-r";
restart_command[2] = NULL;
@ -721,7 +721,7 @@ panel_app_run (gchar *client_id)
MARK("connect to session manager");
if (!session_init (panel_app.session_client))
{
g_free (panel_app.session_client);
client_session_free (panel_app.session_client);
panel_app.session_client = NULL;
}
@ -747,8 +747,8 @@ panel_app_run (gchar *client_id)
MARK("end main loop");
/* cleanup */
g_free (panel_app.session_client);
panel_app.session_client = NULL;
if (panel_app.session_client)
client_session_free (panel_app.session_client);
cleanup_panels ();
xfce_panel_item_manager_cleanup ();

Loading…
Cancel
Save