Changeset 50ddfad for protocols/rpc
- Timestamp:
- 2015-05-29T05:20:27Z (10 years ago)
- Children:
- dcfa886
- Parents:
- b73409f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/rpc/rpc.c
rb73409f r50ddfad 297 297 } 298 298 299 static void rpc_groupchat_free(struct groupchat *gc); 300 299 301 static void rpc_logout(struct im_connection *ic) { 300 302 RPC_OUT_INIT("logout"); … … 303 305 304 306 struct rpc_connection *rd = ic->proto_data; 307 308 GHashTableIter iter; 309 struct rpc_groupchat *rc; 310 g_hash_table_iter_init(&iter, rd->groupchats); 311 while (g_hash_table_iter_next(&iter, NULL, (gpointer*)&rc)) { 312 rpc_groupchat_free(rc->gc); 313 } 314 305 315 b_event_remove(ic->inpa); 306 316 closesocket(rd->fd); … … 399 409 json_array_append_integer(params, rc->id); 400 410 rpc_send(gc->ic, rpc); 411 rpc_groupchat_free(gc); 401 412 } 402 413 … … 425 436 426 437 return rc; 438 } 439 440 static void rpc_groupchat_free(struct groupchat *gc) { 441 g_free(gc->data); 442 imcb_chat_free(gc); 427 443 } 428 444
Note: See TracChangeset
for help on using the changeset viewer.