From 3f3d218978d49b77f18464977f3b92c5d644bc1b Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 7 Dec 2009 16:19:30 +0000 Subject: chat-window: ref the contact stored as a data in the chat --- src/empathy-chat-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/empathy-chat-window.c') 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); -- cgit v1.2.3