aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-individual-manager.c
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-08 11:16:46 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:36 +0800
commitcb703ba93de027d1b62b1a9716ca7d9c0d90133b (patch)
treea7c99918b291ae9abc500d0c5928641d8cc84423 /libempathy/empathy-individual-manager.c
parentdf6ea1a0a3bdef9fc134bfaaa02ca3614398ca16 (diff)
downloadgsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.gz
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.bz2
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.lz
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.xz
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.zst
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.zip
Take advantage of the tp_clear_* utility functions.
Diffstat (limited to 'libempathy/empathy-individual-manager.c')
-rw-r--r--libempathy/empathy-individual-manager.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index 183996a3d..a86ec0147 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -121,11 +121,8 @@ individual_manager_finalize (GObject *object)
{
EmpathyIndividualManagerPriv *priv = GET_PRIV (object);
- if (priv->contact_manager != NULL)
- g_object_unref (priv->contact_manager);
-
- if (priv->aggregator != NULL)
- g_object_unref (priv->aggregator);
+ tp_clear_object (&priv->contact_manager);
+ tp_clear_object (&priv->aggregator);
}
static GObject *