diff options
author | Travis Reitter <treitter@gmail.com> | 2010-07-09 02:46:00 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:36 +0800 |
commit | a4421e0ebac291f3cb897f1ea0ff2839ec50d014 (patch) | |
tree | 6b185608dc6a197a064e6bee491eacd481b29ffc /libempathy-gtk/empathy-individual-view.c | |
parent | fef2dec3ea6216921b297c7edbb3665e6c222ef5 (diff) | |
download | gsoc2013-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-view.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index a8b294c2b..d6aec8271 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -488,6 +488,7 @@ individual_view_file_drag_received (GtkWidget *view, empathy_send_file_from_uri_list (contact, sel_data); g_object_unref (individual); + tp_clear_object (&contact); return TRUE; } @@ -898,7 +899,6 @@ individual_view_row_activated (GtkTreeView *view, return; contact = empathy_contact_dup_from_folks_individual (individual); - if (contact != NULL) { DEBUG ("Starting a chat"); @@ -908,6 +908,7 @@ individual_view_row_activated (GtkTreeView *view, } g_object_unref (individual); + tp_clear_object (&contact); } static void |