summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index d6bee5a1..dbbfa58c 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -773,6 +773,8 @@ int del_groupchat(Messenger *m, int groupnumber)
773 break; 773 break;
774 } 774 }
775 775
776 m->numchats = i;
777
776 if (i == 0) { 778 if (i == 0) {
777 free(m->chats); 779 free(m->chats);
778 m->chats = NULL; 780 m->chats = NULL;