Changeset fecdd71
- Timestamp:
- 2016-11-04T23:48:52Z (8 years ago)
- Branches:
- master
- Children:
- 30093fa
- Parents:
- 50988d1
- Location:
- protocols/purple
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/bpurple.h
r50988d1 rfecdd71 13 13 GHashTable *input_requests; 14 14 guint next_request_id; 15 char *chat_list_server; 15 16 }; 16 17 -
protocols/purple/purple.c
r50988d1 rfecdd71 389 389 purple_accounts_remove(pd->account); 390 390 imcb_chat_list_free(ic); 391 g_free(pd->chat_list_server); 391 392 g_hash_table_destroy(pd->input_requests); 392 393 g_free(pd); … … 782 783 return; 783 784 } 785 786 g_free(pd->chat_list_server); 787 pd->chat_list_server = (server && *server) ? g_strdup(server) : NULL; 784 788 785 789 list = purple_roomlist_get_list(pd->account->gc); … … 1230 1234 struct im_connection *ic = purple_ic_by_pa(account); 1231 1235 struct purple_data *pd = ic->proto_data; 1232 struct request_input_data *ri = g_new0(struct request_input_data, 1); 1233 guint id = pd->next_request_id++; 1236 struct request_input_data *ri; 1237 guint id; 1238 1239 /* hack so that jabber's chat list doesn't ask for conference server twice */ 1240 if (pd->chat_list_server && title && g_strcmp0(title, "Enter a Conference Server") == 0) { 1241 ((ri_callback_t) ok_cb)(user_data, pd->chat_list_server); 1242 g_free(pd->chat_list_server); 1243 pd->chat_list_server = NULL; 1244 return NULL; 1245 } 1246 1247 id = pd->next_request_id++; 1248 ri = g_new0(struct request_input_data, 1); 1234 1249 1235 1250 ri->id = id; … … 1392 1407 { 1393 1408 struct im_connection *ic; 1409 struct purple_data *pd; 1394 1410 struct purple_roomlist_data *rld = list->ui_data; 1395 1411 … … 1400 1416 ic = purple_ic_by_pa(list->account); 1401 1417 imcb_chat_list_free(ic); 1418 1419 pd = ic->proto_data; 1420 g_free(pd->chat_list_server); 1421 pd->chat_list_server = NULL; 1402 1422 1403 1423 ic->chatlist = g_slist_reverse(rld->chats);
Note: See TracChangeset
for help on using the changeset viewer.