mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed crash in tox_new().
This commit is contained in:
parent
acfc97d0b0
commit
ad804855f9
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user