telepathy-logger: stop using tp_text_channel_get_pending_messages()

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Wed Sep 25 07:38:46 PDT 2013


Module: telepathy-logger
Branch: master
Commit: 54dc1def7a7dcaee992a0d615ecd685e0f11e5f2
URL:    http://cgit.freedesktop.org/telepathy/telepathy-logger/commit/?id=54dc1def7a7dcaee992a0d615ecd685e0f11e5f2

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Mon Sep 23 16:28:34 2013 +0200

stop using tp_text_channel_get_pending_messages()

https://bugs.freedesktop.org/show_bug.cgi?id=69797

---

 telepathy-logger/text-channel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c
index 67c0671..f34eeec 100644
--- a/telepathy-logger/text-channel.c
+++ b/telepathy-logger/text-channel.c
@@ -437,7 +437,7 @@ store_pending_messages (TplTextChannel *self)
     }
 
   pending_messages =
-    tp_text_channel_get_pending_messages (TP_TEXT_CHANNEL (self));
+    tp_text_channel_dup_pending_messages (TP_TEXT_CHANNEL (self));
 
   pending_messages = g_list_sort (pending_messages,
       (GCompareFunc) pending_message_compare_id);
@@ -506,7 +506,7 @@ store_pending_messages (TplTextChannel *self)
 
   g_list_foreach (cached_messages, (GFunc) g_free, NULL);
   g_list_free (cached_messages);
-  g_list_free (pending_messages);
+  g_list_free_full (pending_messages, g_object_unref);
 
 
   /* We need to remove before we log to avoid collisions */



More information about the telepathy-commits mailing list