mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #585 from JFreegman/master
numchats needs to be decremented
This commit is contained in:
commit
9ce1828fac
|
@ -773,6 +773,8 @@ int del_groupchat(Messenger *m, int groupnumber)
|
|||
break;
|
||||
}
|
||||
|
||||
m->numchats = i;
|
||||
|
||||
if (i == 0) {
|
||||
free(m->chats);
|
||||
m->chats = NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user