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;
}
m->numchats = i;
if (i == 0) {
free(m->chats);
m->chats = NULL;