diff options
author | dequis <dx@dxzone.com.ar> | 2016-04-17 06:32:27 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-04-17 06:32:27 -0300 |
commit | a244877191da5159d56e34dca57e881a639061ce (patch) | |
tree | f33708227143b53e256d84c8900a56f573b4e067 /protocols/twitter/twitter.c | |
parent | 991c75fbf4c4bc0ab2ae6f8b983a092080630b14 (diff) |
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.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r-- | protocols/twitter/twitter.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |