Author: kelnos
Date: 2008-10-22 11:34:27 +0000 (Wed, 22 Oct 2008)
New Revision: 28358

Modified:
   xfce4-session/trunk/ChangeLog
   xfce4-session/trunk/settings/session-editor.c
Log:
        * settings/session-editor.c: Fix a couple memleaks and a typo
          that causes operations on clients to fail.

Modified: xfce4-session/trunk/ChangeLog
===================================================================
--- xfce4-session/trunk/ChangeLog       2008-10-22 10:23:52 UTC (rev 28357)
+++ xfce4-session/trunk/ChangeLog       2008-10-22 11:34:27 UTC (rev 28358)
@@ -1,3 +1,8 @@
+2008-10-22     Brian Tarricone <[EMAIL PROTECTED]>
+
+       * settings/session-editor.c: Fix a couple memleaks and a typo
+         that causes operations on clients to fail.
+
 2008-10-21     Brian Tarricone <[EMAIL PROTECTED]>
 
        * settings/session-editor.c: Cache the DBusGProxy in the list

Modified: xfce4-session/trunk/settings/session-editor.c
===================================================================
--- xfce4-session/trunk/settings/session-editor.c       2008-10-22 10:23:52 UTC 
(rev 28357)
+++ xfce4-session/trunk/settings/session-editor.c       2008-10-22 11:34:27 UTC 
(rev 28358)
@@ -135,6 +135,7 @@
 
             if(!xfsm_client_dbus_client_set_sm_properties(proxy, properties, 
&error)) {
                 /* FIXME: show error */
+                g_error_free(error);
             }
 
             g_value_unset(&val);
@@ -155,6 +156,7 @@
     g_free(primary);
     g_free(btntext);
     g_free(name);
+    g_object_unref(proxy);
 }
 
 static void
@@ -262,7 +264,7 @@
     DBG("adding '%s', obj path %s", name, object_path);
     gtk_list_store_append(GTK_LIST_STORE(model), &iter);
     gtk_list_store_set(GTK_LIST_STORE(model), &iter,
-                       COL_DBUS_PROXY, proxy,
+                       COL_DBUS_PROXY, client_proxy,
                        COL_OBJ_PATH, object_path,
                        COL_NAME, name,
                        COL_RESTART_STYLE, hint,

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to