summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/Messenger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index a27a44dc..d9e085fb 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;