[Xfce4-commits] <xfce4-session:master> Fix consolekit proxy unref.

Jérôme Guelfucci noreply at xfce.org
Sat Feb 27 00:38:01 CET 2010


Updating branch refs/heads/master
         to 5646136fbd66c9f09f9f760bb294e3c73715694b (commit)
       from bd232527cbdff46d49f91656be7f12a6bae6b335 (commit)

commit 5646136fbd66c9f09f9f760bb294e3c73715694b
Author: Ali Abdallah <aliov at xfce.org>
Date:   Wed Feb 3 12:09:23 2010 +0100

    Fix consolekit proxy unref.

 xfce4-session/xfsm-shutdown-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xfce4-session/xfsm-shutdown-helper.c b/xfce4-session/xfsm-shutdown-helper.c
index 16df203..63306e9 100644
--- a/xfce4-session/xfsm-shutdown-helper.c
+++ b/xfce4-session/xfsm-shutdown-helper.c
@@ -393,13 +393,13 @@ xfsm_shutdown_helper_init_polkit_data (XfsmShutdownHelper *helper)
 	      g_free (consolekit_session);
 	      subject_created = TRUE;
 	    }
+	  g_object_unref (proxy);
 	}
       else if (error)
 	{
 	  g_warning ("'GetSessionForCookie' failed : %s", error->message);
 	  g_error_free (error);
 	}
-      g_object_unref (proxy);
     }
   
   /**



More information about the Xfce4-commits mailing list