Kill_messenger now kills group chats.

This commit is contained in:
irungentoo 2013-11-23 22:17:36 -05:00
parent f21a9a7666
commit 2b94408adc

View File

@ -1514,6 +1514,10 @@ void kill_messenger(Messenger *m)
/* FIXME TODO: ideally cleanupMessenger will mirror initMessenger.
* This requires the other modules to expose cleanup functions.
*/
uint32_t i, numchats = m->numchats;
for (i = 0; i < numchats; ++i)
del_groupchat(m, i);
kill_DHT(m->dht);
kill_net_crypto(m->net_crypto);
kill_networking(m->net);