[empathy] chat-window: ref the contact stored as a data in the chat



commit 3f3d218978d49b77f18464977f3b92c5d644bc1b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Dec 7 16:19:30 2009 +0000

    chat-window: ref the contact stored as a data in the chat

 src/empathy-chat-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 44bbb4e..658e594 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]