diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-24 14:25:00 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-24 14:32:38 +0100 |
commit | 3d38b481aeb7e74b4cdc21325b9a02abe2d0cc7c (patch) | |
tree | 864d1b8850f07ac0001c80d7379a6143b685b37e | |
parent | 1f63888f1dd81b6f5ab2bb8643fcff65f640edc6 (diff) | |
download | telepathy-logger-3d38b481aeb7e74b4cdc21325b9a02abe2d0cc7c.tar.gz |
_tpl_log_manager_get_chats: properly free the returned list
-rw-r--r-- | telepathy-logger/log-manager.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index 459901d..94a0653 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -662,14 +662,13 @@ _tpl_log_manager_get_chats (TplLogManager *manager, for (l = priv->readable_stores; l != NULL; l = g_list_next (l)) { TplLogStore *store = TPL_LOG_STORE (l->data); - GList *in; + GList *in, *j; + in = _tpl_log_store_get_chats (store, account); /* merge the lists avoiding duplicates */ - for (in = _tpl_log_store_get_chats (store, account); - in != NULL; - in = g_list_next (in)) + for (j = in; j != NULL; j = g_list_next (j)) { - TplLogSearchHit *hit = in->data; + TplLogSearchHit *hit = j->data; if (g_list_find_custom (out, hit, (GCompareFunc) _tpl_log_manager_search_hit_compare) == NULL) |