aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-12 16:55:12 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-12 16:55:12 +0800
commit647d188902cbd616ad2a3681e9b3062fad46d31c (patch)
tree2c872619174a2c7d7bc455774c54d61991316323 /libempathy-gtk
parentba7ad370ba65cf7a2f445307b445681a488b0d96 (diff)
downloadgsoc2013-empathy-647d188902cbd616ad2a3681e9b3062fad46d31c.tar
gsoc2013-empathy-647d188902cbd616ad2a3681e9b3062fad46d31c.tar.gz
gsoc2013-empathy-647d188902cbd616ad2a3681e9b3062fad46d31c.tar.bz2
gsoc2013-empathy-647d188902cbd616ad2a3681e9b3062fad46d31c.tar.lz
gsoc2013-empathy-647d188902cbd616ad2a3681e9b3062fad46d31c.tar.xz
gsoc2013-empathy-647d188902cbd616ad2a3681e9b3062fad46d31c.tar.zst
gsoc2013-empathy-647d188902cbd616ad2a3681e9b3062fad46d31c.zip
select_account_once_ready: free the account and ID to avoid leaks
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-log-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index df41225cb..8e2bb681e 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -194,8 +194,12 @@ select_account_once_ready (EmpathyLogWindow *self,
{
EmpathyAccountChooser *account_chooser = EMPATHY_ACCOUNT_CHOOSER (self->account_chooser_chats);
+ tp_clear_object (&self->selected_account);
self->selected_account = g_object_ref (account);
+
+ g_free (self->selected_chat_id);
self->selected_chat_id = g_strdup (chat_id);
+
self->selected_is_chatroom = is_chatroom;
if (empathy_account_chooser_is_ready (account_chooser))