Changeset bbff22d
- Timestamp:
- 2015-10-09T02:41:01Z (9 years ago)
- Branches:
- master
- Children:
- b87e5dc
- Parents:
- c4e61db
- git-author:
- dequis <dx@…> (08-10-15 07:48:06)
- git-committer:
- dequis <dx@…> (09-10-15 02:41:01)
- Location:
- protocols/twitter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
rc4e61db rbbff22d 678 678 ic->flags &= ~OPT_LOGGED_IN; 679 679 680 // Remove the main_loop function from the function queue.681 b_event_remove(td->main_loop_id);682 683 if (td->timeline_gc) {684 imcb_chat_free(td->timeline_gc);685 }686 687 680 if (td) { 681 // Remove the main_loop function from the function queue. 682 b_event_remove(td->main_loop_id); 683 684 if (td->timeline_gc) { 685 imcb_chat_free(td->timeline_gc); 686 } 687 688 688 if (td->filter_update_id > 0) { 689 689 b_event_remove(td->filter_update_id); -
protocols/twitter/twitter_http.c
rc4e61db rbbff22d 53 53 char *tmp; 54 54 GString *request = g_string_new(""); 55 void *ret ;55 void *ret = NULL; 56 56 char *url_arguments; 57 57 url_t *base_url = NULL; … … 72 72 base_url = g_new0(url_t, 1); 73 73 if (!url_set(base_url, url_string)) { 74 g_free(base_url); 75 return NULL; 74 goto error; 76 75 } 77 76 } … … 132 131 } 133 132 133 error: 134 134 g_free(url_arguments); 135 135 g_string_free(request, TRUE); -
protocols/twitter/twitter_lib.c
rc4e61db rbbff22d 312 312 td = ic->proto_data; 313 313 314 // Parse the data. 315 if (!(parsed = twitter_parse_response(ic, req))) { 316 return; 317 } 318 314 319 txl = g_new0(struct twitter_xml_list, 1); 315 320 txl->list = td->follow_ids; 316 317 // Parse the data.318 if (!(parsed = twitter_parse_response(ic, req))) {319 return;320 }321 321 322 322 twitter_xt_get_friends_id_list(parsed, txl); … … 388 388 } 389 389 390 // Get the user list from the parsed xml feed. 391 if (!(parsed = twitter_parse_response(ic, req))) { 392 return; 393 } 394 390 395 txl = g_new0(struct twitter_xml_list, 1); 391 396 txl->list = NULL; 392 397 393 // Get the user list from the parsed xml feed.394 if (!(parsed = twitter_parse_response(ic, req))) {395 return;396 }397 398 twitter_xt_get_users(parsed, txl); 398 399 json_value_free(parsed); … … 1385 1386 td = ic->proto_data; 1386 1387 1387 txl = g_new0(struct twitter_xml_list, 1);1388 txl->list = NULL;1389 1390 1388 // The root <statuses> node should hold the list of statuses <status> 1391 1389 if (!(parsed = twitter_parse_response(ic, req))) { 1392 1390 goto end; 1393 1391 } 1392 1393 txl = g_new0(struct twitter_xml_list, 1); 1394 txl->list = NULL; 1395 1394 1396 twitter_xt_get_status_list(ic, parsed, txl); 1395 1397 json_value_free(parsed); … … 1424 1426 td = ic->proto_data; 1425 1427 1426 txl = g_new0(struct twitter_xml_list, 1);1427 txl->list = NULL;1428 1429 1428 // The root <statuses> node should hold the list of statuses <status> 1430 1429 if (!(parsed = twitter_parse_response(ic, req))) { 1431 1430 goto end; 1432 1431 } 1432 1433 txl = g_new0(struct twitter_xml_list, 1); 1434 txl->list = NULL; 1435 1433 1436 twitter_xt_get_status_list(ic, parsed, txl); 1434 1437 json_value_free(parsed);
Note: See TracChangeset
for help on using the changeset viewer.