summaryrefslogtreecommitdiff
path: root/telepathy-logger/text-channel.c
diff options
context:
space:
mode:
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 */