aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-08 00:19:30 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-08 01:34:54 +0800
commit3f3d218978d49b77f18464977f3b92c5d644bc1b (patch)
tree3ccb7beba51e09c19eb3118809f4a5ce1dd48808 /src/empathy-chat-window.c
parent206b3a79c8b5d941d20a65f258a5beb0b7b32270 (diff)
downloadgsoc2013-empathy-3f3d218978d49b77f18464977f3b92c5d644bc1b.tar
gsoc2013-empathy-3f3d218978d49b77f18464977f3b92c5d644bc1b.tar.gz
gsoc2013-empathy-3f3d218978d49b77f18464977f3b92c5d644bc1b.tar.bz2
gsoc2013-empathy-3f3d218978d49b77f18464977f3b92c5d644bc1b.tar.lz
gsoc2013-empathy-3f3d218978d49b77f18464977f3b92c5d644bc1b.tar.xz
gsoc2013-empathy-3f3d218978d49b77f18464977f3b92c5d644bc1b.tar.zst
gsoc2013-empathy-3f3d218978d49b77f18464977f3b92c5d644bc1b.zip
chat-window: ref the contact stored as a data in the chat
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 44bbb4e5d..658e59426 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -697,8 +697,8 @@ chat_window_chat_notify_cb (EmpathyChat *chat)
chat);
}
- g_object_set_data (G_OBJECT (chat), "chat-window-remote-contact",
- remote_contact);
+ g_object_set_data_full (G_OBJECT (chat), "chat-window-remote-contact",
+ g_object_ref (remote_contact), (GDestroyNotify) g_object_unref);
}
chat_window_update_chat_tab (chat);