diff options
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index fc8bd9bb..c877d565 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -1835,10 +1835,12 @@ void kill_messenger(Messenger *m) | |||
1835 | kill_net_crypto(m->net_crypto); | 1835 | kill_net_crypto(m->net_crypto); |
1836 | kill_DHT(m->dht); | 1836 | kill_DHT(m->dht); |
1837 | kill_networking(m->net); | 1837 | kill_networking(m->net); |
1838 | |||
1838 | for (i = 0; i < m->numfriends; ++i) { | 1839 | for (i = 0; i < m->numfriends; ++i) { |
1839 | if (m->friendlist[i].statusmessage) | 1840 | if (m->friendlist[i].statusmessage) |
1840 | free(m->friendlist[i].statusmessage); | 1841 | free(m->friendlist[i].statusmessage); |
1841 | } | 1842 | } |
1843 | |||
1842 | free(m->friendlist); | 1844 | free(m->friendlist); |
1843 | free(m); | 1845 | free(m); |
1844 | } | 1846 | } |