aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-18 22:43:17 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-19 01:18:56 +0800
commita272c04575698908bff1363f3d652cc67876e599 (patch)
tree179c1b8fe2dd0776502925822f67646bda6fb61d
parent53966af9c627e5217fb247b64ef62bf40541c5f8 (diff)
downloadgsoc2013-empathy-a272c04575698908bff1363f3d652cc67876e599.tar
gsoc2013-empathy-a272c04575698908bff1363f3d652cc67876e599.tar.gz
gsoc2013-empathy-a272c04575698908bff1363f3d652cc67876e599.tar.bz2
gsoc2013-empathy-a272c04575698908bff1363f3d652cc67876e599.tar.lz
gsoc2013-empathy-a272c04575698908bff1363f3d652cc67876e599.tar.xz
gsoc2013-empathy-a272c04575698908bff1363f3d652cc67876e599.tar.zst
gsoc2013-empathy-a272c04575698908bff1363f3d652cc67876e599.zip
Use tp_clear_pointer() where possible
-rw-r--r--libempathy/empathy-tls-verifier.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index cd76a8917..c2169f0fd 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -619,14 +619,10 @@ empathy_tls_verifier_finalize (GObject *object)
DEBUG ("%p", object);
- if (priv->trusted_ca_list != NULL)
- g_ptr_array_unref (priv->trusted_ca_list);
-
- if (priv->cert_chain != NULL)
- g_ptr_array_unref (priv->cert_chain);
-
- g_free (priv->hostname);
+ tp_clear_pointer (&priv->trusted_ca_list, g_ptr_array_unref);
+ tp_clear_pointer (&priv->cert_chain, g_ptr_array_unref);
tp_clear_boxed (G_TYPE_HASH_TABLE, &priv->details);
+ g_free (priv->hostname);
G_OBJECT_CLASS (empathy_tls_verifier_parent_class)->finalize (object);
}