diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-11 18:22:39 +0000 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-11 18:22:39 +0000 | 
| commit | 2fb1262a8200ec05d1b3334103fb7182dc2b2fa7 (patch) | |
| tree | 795442eded151c13c061ecc17a49239d57b015ba /protocols | |
| parent | 1388d303ba0d2097ff745d4a17192195cebbd349 (diff) | |
Tiny cleanup. Fixing some memory leaks (why did I not notice so far that
those free()s were commented out?).
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/twitter/twitter_lib.c | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 3e5da854..ee19786a 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -957,9 +957,7 @@ static void twitter_get_mentions(struct im_connection *ic, gint64 next_cursor)  	}  	g_free(args[1]); -	if (td->timeline_id) { -		g_free(args[5]); -	} +	g_free(args[5]);  }  /** @@ -985,7 +983,7 @@ static void twitter_http_get_home_timeline(struct http_request *req)  	if (!(parsed = twitter_parse_response(ic, req)))  		goto end;  	twitter_xt_get_status_list(ic, parsed, txl); -//	json_value_free(parsed); +	json_value_free(parsed);  	td->home_timeline_obj = txl; @@ -1021,7 +1019,7 @@ static void twitter_http_get_mentions(struct http_request *req)  	if (!(parsed = twitter_parse_response(ic, req)))  		goto end;  	twitter_xt_get_status_list(ic, parsed, txl); -//	json_value_free(parsed); +	json_value_free(parsed);  	td->mentions_obj = txl; | 
