aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-menu.c
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-09 02:46:00 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:36 +0800
commita4421e0ebac291f3cb897f1ea0ff2839ec50d014 (patch)
tree6b185608dc6a197a064e6bee491eacd481b29ffc /libempathy-gtk/empathy-individual-menu.c
parentfef2dec3ea6216921b297c7edbb3665e6c222ef5 (diff)
downloadgsoc2013-empathy-a4421e0ebac291f3cb897f1ea0ff2839ec50d014.tar
gsoc2013-empathy-a4421e0ebac291f3cb897f1ea0ff2839ec50d014.tar.gz
gsoc2013-empathy-a4421e0ebac291f3cb897f1ea0ff2839ec50d014.tar.bz2
gsoc2013-empathy-a4421e0ebac291f3cb897f1ea0ff2839ec50d014.tar.lz
gsoc2013-empathy-a4421e0ebac291f3cb897f1ea0ff2839ec50d014.tar.xz
gsoc2013-empathy-a4421e0ebac291f3cb897f1ea0ff2839ec50d014.tar.zst
gsoc2013-empathy-a4421e0ebac291f3cb897f1ea0ff2839ec50d014.zip
Don't leak references to the contacts returned from empathy_contact_dup_from_folks_individual().
Diffstat (limited to 'libempathy-gtk/empathy-individual-menu.c')
-rw-r--r--libempathy-gtk/empathy-individual-menu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index 380d0ac57..be5895ac5 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -378,6 +378,8 @@ individual_log_menu_item_activate_cb (FolksIndividual *individual)
empathy_log_window_show (empathy_contact_get_account (contact),
empathy_contact_get_id (contact), FALSE, NULL);
+
+ g_object_unref (contact);
}
GtkWidget *
@@ -532,6 +534,8 @@ individual_info_menu_item_activate_cb (FolksIndividual *individual)
contact = empathy_contact_dup_from_folks_individual (individual);
empathy_contact_information_dialog_show (contact, NULL);
+
+ tp_clear_object (&contact);
}
GtkWidget *
@@ -564,6 +568,8 @@ individual_edit_menu_item_activate_cb (FolksIndividual *individual)
contact = empathy_contact_dup_from_folks_individual (individual);
empathy_contact_edit_dialog_show (contact, NULL);
+
+ tp_clear_object (&contact);
}
GtkWidget *