[empathy/gnome-3-6] auth-client: Don't unref properties before creating the certificate



commit 547efabcc71b16044e7776d41262c0f66aaf6eb1
Author: Debarshi Ray <debarshir src gnome org>
Date:   Tue Nov 6 15:31:06 2012 +0100

    auth-client: Don't unref properties before creating the certificate
    
    Fixes: https://bugzilla.gnome.org/687762

 libempathy/empathy-server-tls-handler.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-server-tls-handler.c b/libempathy/empathy-server-tls-handler.c
index 7a6bdf1..d58155f 100644
--- a/libempathy/empathy-server-tls-handler.c
+++ b/libempathy/empathy-server-tls-handler.c
@@ -148,14 +148,14 @@ tls_handler_init_async (GAsyncInitable *initable,
       "&o", &cert_object_path);
   bus_name = tp_proxy_get_bus_name (TP_PROXY (priv->channel));
 
-  g_variant_unref (properties);
-
   DEBUG ("Creating an TpTLSCertificate for path %s, bus name %s",
       cert_object_path, bus_name);
 
   priv->certificate = tp_tls_certificate_new (TP_PROXY (priv->channel),
       cert_object_path, &error);
 
+  g_variant_unref (properties);
+
   if (error != NULL)
     {
       DEBUG ("Unable to create the TpTLSCertificate: error %s",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]