Fixed crash in tox_new().

This commit is contained in:
irungentoo 2014-09-29 13:45:51 -04:00
parent acfc97d0b0
commit ad804855f9
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -1607,6 +1607,9 @@ Messenger *new_messenger(Messenger_Options *options)
/* Run this before closing shop. */ /* Run this before closing shop. */
void kill_messenger(Messenger *m) void kill_messenger(Messenger *m)
{ {
if (!m)
return;
uint32_t i; uint32_t i;
kill_friend_connections(m->fr_c); kill_friend_connections(m->fr_c);