Merge pull request #585 from JFreegman/master

numchats needs to be decremented
This commit is contained in:
irungentoo 2013-09-17 04:34:51 -07:00
commit 9ce1828fac

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;