[Xfce4-commits] <libxfce4ui:new-sm-client> clear out global startup options in _finalize()

Brian J. Tarricone brian at tarricone.org
Wed Sep 16 01:24:03 CEST 2009


Updating branch refs/heads/kelnos/new-sm-client
         to 52861a5f14d2d0e32e032fb3082e327ce45980e5 (commit)
       from 3d2875aa106d33ed1194fd4ce4dd20e254ee404a (commit)

commit 52861a5f14d2d0e32e032fb3082e327ce45980e5
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Tue Sep 15 16:23:46 2009 -0700

    clear out global startup options in _finalize()

 libxfce4ui/xfce-sm-client.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libxfce4ui/xfce-sm-client.c b/libxfce4ui/xfce-sm-client.c
index 18b95c5..79f3c1c 100644
--- a/libxfce4ui/xfce-sm-client.c
+++ b/libxfce4ui/xfce-sm-client.c
@@ -600,6 +600,13 @@ xfce_sm_client_finalize(GObject *obj)
     g_assert(sm_client == sm_client_singleton);
     sm_client_singleton = NULL;
 
+    startup_options.argc = 0;
+    g_strfreev(startup_options.argv);
+    startup_options.argv = NULL;
+    g_free(startup_options.client_id);
+    startup_options.client_id = NULL;
+    startup_options.sm_disable = FALSE;
+
 #ifdef HAVE_LIBSM
     if(sm_client->session_connection)
         xfce_sm_client_disconnect(sm_client);



More information about the Xfce4-commits mailing list