summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-17 04:34:51 -0700
committerirungentoo <irungentoo@gmail.com>2013-09-17 04:34:51 -0700
commit9ce1828facc5e344d9de7bc6900bd378de99a425 (patch)
treefbbe8916cba336e030ae097198ab12eecb2b93b5
parent0b7479e75804dccf837e33ed68f36a78f55bf099 (diff)
parentd4e135d763b02559f94677b0a612cd53fcd26eda (diff)
Merge pull request #585 from JFreegman/master
numchats needs to be decremented
-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;