diff options
-rw-r--r-- | 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 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); |