mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fix memory leak
This commit is contained in:
parent
0486510edc
commit
13b23b1a01
|
@ -820,6 +820,7 @@ void do_groupchat(Group_Chat *chat)
|
||||||
void kill_groupchat(Group_Chat *chat)
|
void kill_groupchat(Group_Chat *chat)
|
||||||
{
|
{
|
||||||
send_data(chat, 0, 0, GROUP_CHAT_QUIT);
|
send_data(chat, 0, 0, GROUP_CHAT_QUIT);
|
||||||
|
kill_Assoc(chat->assoc);
|
||||||
free(chat->group);
|
free(chat->group);
|
||||||
free(chat);
|
free(chat);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user