summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--telepathy-logger/log-walker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-logger/log-walker.c b/telepathy-logger/log-walker.c
index 0af84b6..f5e94d3 100644
--- a/telepathy-logger/log-walker.c
+++ b/telepathy-logger/log-walker.c
@@ -326,8 +326,8 @@ tpl_log_walker_get_events (TplLogWalker *walker,
GList *h;
TplLogWalkerHistoryData *data;
- *latest_cache = g_list_remove_link (*latest_cache, latest_event);
events = g_list_prepend (events, latest_event->data);
+ *latest_cache = g_list_delete_link (*latest_cache, latest_event);
i++;
h = priv->history;