aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-13 21:42:45 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-12 16:50:48 +0800
commit861b7dab7368472935d533a9bb0c65ad6c1e35c2 (patch)
treedffb7cb3090a124df1d6e6427f78b4ab182172f8 /libempathy-gtk
parent67372f1ad852b29b7c8c638a7bae397b6be3098c (diff)
downloadgsoc2013-empathy-861b7dab7368472935d533a9bb0c65ad6c1e35c2.tar
gsoc2013-empathy-861b7dab7368472935d533a9bb0c65ad6c1e35c2.tar.gz
gsoc2013-empathy-861b7dab7368472935d533a9bb0c65ad6c1e35c2.tar.bz2
gsoc2013-empathy-861b7dab7368472935d533a9bb0c65ad6c1e35c2.tar.lz
gsoc2013-empathy-861b7dab7368472935d533a9bb0c65ad6c1e35c2.tar.xz
gsoc2013-empathy-861b7dab7368472935d533a9bb0c65ad6c1e35c2.tar.zst
gsoc2013-empathy-861b7dab7368472935d533a9bb0c65ad6c1e35c2.zip
keep a ref on the account
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-log-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 7ea7bf187..35e554dce 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -194,7 +194,7 @@ select_account_once_ready (EmpathyLogWindow *self,
{
EmpathyAccountChooser *account_chooser = EMPATHY_ACCOUNT_CHOOSER (self->account_chooser_chats);
- self->selected_account = account;
+ self->selected_account = g_object_ref (account);
self->selected_chat_id = g_strdup (chat_id);
self->selected_is_chatroom = is_chatroom;
@@ -334,6 +334,7 @@ log_window_destroy_cb (GtkWidget *widget,
{
g_free (window->last_find);
g_object_unref (window->log_manager);
+ tp_clear_object (&window->selected_account);
g_free (window->selected_chat_id);
g_free (window);