]> git.0d.be Git - empathy.git/commitdiff
auth-client: Don't unref properties before creating the certificate
authorDebarshi Ray <debarshir@src.gnome.org>
Tue, 6 Nov 2012 14:31:06 +0000 (15:31 +0100)
committerDebarshi Ray <debarshir@gnome.org>
Tue, 6 Nov 2012 14:45:50 +0000 (15:45 +0100)
Fixes: https://bugzilla.gnome.org/687762
libempathy/empathy-server-tls-handler.c

index 7a6bdf1ed5073b8ede23ab0971911270b3913c3f..d58155f5863ad27c4292f2ac30ac83e48b12a1a0 100644 (file)
@@ -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",