diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index a0580ed9..59e7bfdd 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -457,7 +457,6 @@ static void twitter_http_get_noretweets_ids(struct http_request *req) json_value *parsed; struct twitter_xml_list *txl; struct twitter_data *td; - GSList *elem; // Check if the connection is stil active if (!g_slist_find(twitter_connections, ic)) { @@ -487,15 +486,10 @@ static void twitter_http_get_noretweets_ids(struct http_request *req) if (c->type != json_integer) { continue; } - txl->list = g_slist_prepend(txl->list, - g_strdup_printf("%"PRIu64, c->u.integer)); + g_hash_table_add(td->noretweets_ids, g_strdup_printf("%"PRIu64, c->u.integer)); } } - for (elem = txl->list; elem; elem = elem->next) { - g_hash_table_add(td->noretweets_ids, elem->data); - } - json_value_free(parsed); txl_free(txl); |