summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-09-29 13:45:51 -0400
committerirungentoo <irungentoo@gmail.com>2014-09-29 13:45:51 -0400
commitad804855f9b70a6bab88e9ba6362f0f613f6d019 (patch)
treeb81538e3090f98ae19d179513e63db5416573705
parentacfc97d0b047d4c5318107082fcc4e7142a13b4d (diff)
Fixed crash in tox_new().
-rw-r--r--toxcore/Messenger.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index d5ab6ee1..a78b06b6 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1607,6 +1607,9 @@ Messenger *new_messenger(Messenger_Options *options)
1607/* Run this before closing shop. */ 1607/* Run this before closing shop. */
1608void kill_messenger(Messenger *m) 1608void kill_messenger(Messenger *m)
1609{ 1609{
1610 if (!m)
1611 return;
1612
1610 uint32_t i; 1613 uint32_t i;
1611 1614
1612 kill_friend_connections(m->fr_c); 1615 kill_friend_connections(m->fr_c);