summaryrefslogtreecommitdiff
path: root/libempathy-gtk/empathy-individual-dialogs.c
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-08 11:46:00 -0700
committerTravis Reitter <treitter@gmail.com>2010-07-20 16:12:36 -0700
commita4421e0ebac291f3cb897f1ea0ff2839ec50d014 (patch)
tree6b185608dc6a197a064e6bee491eacd481b29ffc /libempathy-gtk/empathy-individual-dialogs.c
parentfef2dec3ea6216921b297c7edbb3665e6c222ef5 (diff)
downloadempathy-a4421e0ebac291f3cb897f1ea0ff2839ec50d014.tar.gz
Don't leak references to the contacts returned from empathy_contact_dup_from_folks_individual().
Diffstat (limited to 'libempathy-gtk/empathy-individual-dialogs.c')
-rw-r--r--libempathy-gtk/empathy-individual-dialogs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-dialogs.c b/libempathy-gtk/empathy-individual-dialogs.c
index b9a843c57..b36567832 100644
--- a/libempathy-gtk/empathy-individual-dialogs.c
+++ b/libempathy-gtk/empathy-individual-dialogs.c
@@ -27,6 +27,7 @@
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
+#include <telepathy-glib/util.h>
#include <folks/folks.h>
#include <libempathy/empathy-individual-manager.h>
@@ -149,4 +150,6 @@ empathy_new_individual_dialog_show_with_individual (GtkWindow *parent,
gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);
gtk_widget_show (dialog);
+
+ tp_clear_object (&contact);
}