summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);