numchats needs to be decremented

This commit is contained in:
Jfreegman 2013-09-17 06:52:02 -04:00
parent 0b7479e758
commit d4e135d763

View File

@ -773,6 +773,8 @@ int del_groupchat(Messenger *m, int groupnumber)
break; break;
} }
m->numchats = i;
if (i == 0) { if (i == 0) {
free(m->chats); free(m->chats);
m->chats = NULL; m->chats = NULL;