mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
numchats needs to be decremented
This commit is contained in:
parent
0b7479e758
commit
d4e135d763
|
@ -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