aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@src.gnome.org>2012-11-06 22:31:06 +0800
committerDebarshi Ray <debarshir@gnome.org>2012-11-06 22:45:50 +0800
commit547efabcc71b16044e7776d41262c0f66aaf6eb1 (patch)
treeb6652310a2139ed45277e3c6cbbef60d38a2f217
parent6a8989306491951d36aeaf82d38923ebf24dbe00 (diff)
downloadgsoc2013-empathy-547efabcc71b16044e7776d41262c0f66aaf6eb1.tar
gsoc2013-empathy-547efabcc71b16044e7776d41262c0f66aaf6eb1.tar.gz
gsoc2013-empathy-547efabcc71b16044e7776d41262c0f66aaf6eb1.tar.bz2
gsoc2013-empathy-547efabcc71b16044e7776d41262c0f66aaf6eb1.tar.lz
gsoc2013-empathy-547efabcc71b16044e7776d41262c0f66aaf6eb1.tar.xz
gsoc2013-empathy-547efabcc71b16044e7776d41262c0f66aaf6eb1.tar.zst
gsoc2013-empathy-547efabcc71b16044e7776d41262c0f66aaf6eb1.zip
auth-client: Don't unref properties before creating the certificate
Fixes: https://bugzilla.gnome.org/687762
-rw-r--r--libempathy/empathy-server-tls-handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-server-tls-handler.c b/libempathy/empathy-server-tls-handler.c
index 7a6bdf1ed..d58155f58 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",