summaryrefslogtreecommitdiff
path: root/telepathy-logger/text-channel.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-23 16:28:34 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-25 11:00:48 +0200
commit54dc1def7a7dcaee992a0d615ecd685e0f11e5f2 (patch)
treef0c65d04ad811edd5657f15d1b41fec1a588b319 /telepathy-logger/text-channel.c
parentb4e924942d3090ad9df1d0443bfa98cccaf6680e (diff)
downloadtelepathy-logger-54dc1def7a7dcaee992a0d615ecd685e0f11e5f2.tar.gz
stop using tp_text_channel_get_pending_messages()
https://bugs.freedesktop.org/show_bug.cgi?id=69797
Diffstat (limited to 'telepathy-logger/text-channel.c')
-rw-r--r--telepathy-logger/text-channel.c4
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 */