From a244877191da5159d56e34dca57e881a639061ce Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 17 Apr 2016 06:32:27 -0300 Subject: twitter: Fix a couple of leaks of mutes_ids and retweets_ids Just freeing the list on logout and when removing items from them. Also remove the "checking mutes" debug which is disproportionately noisy compared to the rest of the protocol. --- protocols/twitter/twitter.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/twitter/twitter.c') diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index e543f86e..4fe509bb 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -686,6 +686,12 @@ static void twitter_logout(struct im_connection *ic) b_event_remove(td->filter_update_id); } + g_slist_foreach(td->mutes_ids, (GFunc) g_free, NULL); + g_slist_free(td->mutes_ids); + + g_slist_foreach(td->noretweets_ids, (GFunc) g_free, NULL); + g_slist_free(td->noretweets_ids); + http_close(td->stream); twitter_filter_remove_all(ic); oauth_info_free(td->oauth_info); -- cgit v1.2.3