]> git.0d.be Git - empathy.git/commitdiff
chat-window: ref the contact stored as a data in the chat
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 7 Dec 2009 16:19:30 +0000 (16:19 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 7 Dec 2009 17:34:54 +0000 (17:34 +0000)
src/empathy-chat-window.c

index 44bbb4e5d81848325bb6ed41219a7f66348b5698..658e59426385df6d13d3cffdc628ae9713507b0a 100644 (file)
@@ -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);