summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-11-23 22:17:36 -0500
committerirungentoo <irungentoo@gmail.com>2013-11-23 22:17:36 -0500
commit2b94408adc5e8ebdd7115b32c3ad3318a36f294b (patch)
tree928fc361980cb063d2a0164da523d96f39ed1d92 /toxcore/Messenger.c
parentf21a9a7666e0f93cd8c19d1491c92526424ae0cb (diff)
Kill_messenger now kills group chats.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index acb038df..cc52c069 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1514,6 +1514,10 @@ void kill_messenger(Messenger *m)
1514 /* FIXME TODO: ideally cleanupMessenger will mirror initMessenger. 1514 /* FIXME TODO: ideally cleanupMessenger will mirror initMessenger.
1515 * This requires the other modules to expose cleanup functions. 1515 * This requires the other modules to expose cleanup functions.
1516 */ 1516 */
1517 uint32_t i, numchats = m->numchats;
1518 for (i = 0; i < numchats; ++i)
1519 del_groupchat(m, i);
1520
1517 kill_DHT(m->dht); 1521 kill_DHT(m->dht);
1518 kill_net_crypto(m->net_crypto); 1522 kill_net_crypto(m->net_crypto);
1519 kill_networking(m->net); 1523 kill_networking(m->net);