diff options
author | Jman012 <jman012guy@gmail.com> | 2014-02-19 09:02:10 -0800 |
---|---|---|
committer | Jman012 <jman012guy@gmail.com> | 2014-02-19 09:02:10 -0800 |
commit | fdf1b6932ba8fd5fbd1bd237a471aa99c79e4744 (patch) | |
tree | 7d1a02294a1e312012b2a72034cc852f4d821a4b | |
parent | bd973152cc7d5b9f8385b6777883ed6ff1a573d7 (diff) |
Groupchat crashing bug fixed.
-rw-r--r-- | toxcore/group_chats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index 17914038..b610e9a5 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c | |||
@@ -787,7 +787,7 @@ static void del_dead_peers(Group_Chat *chat) | |||
787 | delpeer(chat, i); | 787 | delpeer(chat, i); |
788 | } | 788 | } |
789 | 789 | ||
790 | if (chat->group[i].deleted) { | 790 | if (chat->group != NULL && chat->group[i].deleted) { |
791 | if (is_timeout(chat->group[i].deleted_time, DEL_PEER_DELAY)) | 791 | if (is_timeout(chat->group[i].deleted_time, DEL_PEER_DELAY)) |
792 | delpeer(chat, i); | 792 | delpeer(chat, i); |
793 | } | 793 | } |