diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-11 18:41:37 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-11 21:10:43 +0800 |
commit | 5ff09cda5bad6b821509876c0fac51c667318602 (patch) | |
tree | 3c4c07f58986b62ee6ccb12f4d405bc374da8790 /libempathy | |
parent | 6a5b51b273fc447c7611675b97268fc99216d430 (diff) | |
download | gsoc2013-empathy-5ff09cda5bad6b821509876c0fac51c667318602.tar gsoc2013-empathy-5ff09cda5bad6b821509876c0fac51c667318602.tar.gz gsoc2013-empathy-5ff09cda5bad6b821509876c0fac51c667318602.tar.bz2 gsoc2013-empathy-5ff09cda5bad6b821509876c0fac51c667318602.tar.lz gsoc2013-empathy-5ff09cda5bad6b821509876c0fac51c667318602.tar.xz gsoc2013-empathy-5ff09cda5bad6b821509876c0fac51c667318602.tar.zst gsoc2013-empathy-5ff09cda5bad6b821509876c0fac51c667318602.zip |
use tp_text_channel_dup_pending_messages()
tp_text_channel_get_pending_messages() has been deprecated.
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 6dc1a3277..9dfb95d2f 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -500,7 +500,7 @@ list_pending_messages (EmpathyTpChat *self) { GList *messages, *l; - messages = tp_text_channel_get_pending_messages (TP_TEXT_CHANNEL (self)); + messages = tp_text_channel_dup_pending_messages (TP_TEXT_CHANNEL (self)); for (l = messages; l != NULL; l = g_list_next (l)) { @@ -509,7 +509,7 @@ list_pending_messages (EmpathyTpChat *self) handle_incoming_message (self, message, FALSE); } - g_list_free (messages); + g_list_free_full (messages, g_object_unref); } static void |