Changeset 3fbce97 for protocols/twitter
- Timestamp:
- 2016-09-24T20:14:34Z (8 years ago)
- Children:
- ba52ac5
- Parents:
- 63cad66 (diff), 82cb190 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- protocols/twitter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
r63cad66 r3fbce97 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
r63cad66 r3fbce97 24 24 /***************************************************************************\ 25 25 * * 26 * Some fun tions within this file have been copied from other files within *26 * Some functions within this file have been copied from other files within * 27 27 * BitlBee. * 28 28 * * … … 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
r63cad66 r3fbce97 314 314 td = ic->proto_data; 315 315 316 // Parse the data. 317 if (!(parsed = twitter_parse_response(ic, req))) { 318 return; 319 } 320 316 321 txl = g_new0(struct twitter_xml_list, 1); 317 322 txl->list = td->follow_ids; 318 319 // Parse the data.320 if (!(parsed = twitter_parse_response(ic, req))) {321 return;322 }323 323 324 324 twitter_xt_get_friends_id_list(parsed, txl); … … 390 390 } 391 391 392 // Get the user list from the parsed xml feed. 393 if (!(parsed = twitter_parse_response(ic, req))) { 394 return; 395 } 396 392 397 txl = g_new0(struct twitter_xml_list, 1); 393 398 txl->list = NULL; 394 399 395 // Get the user list from the parsed xml feed.396 if (!(parsed = twitter_parse_response(ic, req))) {397 return;398 }399 400 twitter_xt_get_users(parsed, txl); 400 401 json_value_free(parsed); … … 1389 1390 td = ic->proto_data; 1390 1391 1391 txl = g_new0(struct twitter_xml_list, 1);1392 txl->list = NULL;1393 1394 1392 // The root <statuses> node should hold the list of statuses <status> 1395 1393 if (!(parsed = twitter_parse_response(ic, req))) { 1396 1394 goto end; 1397 1395 } 1396 1397 txl = g_new0(struct twitter_xml_list, 1); 1398 txl->list = NULL; 1399 1398 1400 twitter_xt_get_status_list(ic, parsed, txl); 1399 1401 json_value_free(parsed); … … 1428 1430 td = ic->proto_data; 1429 1431 1430 txl = g_new0(struct twitter_xml_list, 1);1431 txl->list = NULL;1432 1433 1432 // The root <statuses> node should hold the list of statuses <status> 1434 1433 if (!(parsed = twitter_parse_response(ic, req))) { 1435 1434 goto end; 1436 1435 } 1436 1437 txl = g_new0(struct twitter_xml_list, 1); 1438 txl->list = NULL; 1439 1437 1440 twitter_xt_get_status_list(ic, parsed, txl); 1438 1441 json_value_free(parsed);
Note: See TracChangeset
for help on using the changeset viewer.