aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-menu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index be5895ac5..a3cacdaae 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -232,8 +232,7 @@ empathy_individual_add_menu_item_new (FolksIndividual *individual)
individual);
out:
- if (contact != NULL)
- g_object_unref (contact);
+ tp_clear_object (&contact);
return item;
}