aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-individual-manager.c
diff options
context:
space:
mode:
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 *