From 54dc1def7a7dcaee992a0d615ecd685e0f11e5f2 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 23 Sep 2013 16:28:34 +0200 Subject: [PATCH 06/15] stop using tp_text_channel_get_pending_messages() https://bugs.freedesktop.org/show_bug.cgi?id=69797 --- telepathy-logger/text-channel.c | 4 ++-- 1 file 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 */ -- 1.8.3.1