diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index 53ef69d3..77fa6acd 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c @@ -820,6 +820,7 @@ void do_groupchat(Group_Chat *chat) void kill_groupchat(Group_Chat *chat) { send_data(chat, 0, 0, GROUP_CHAT_QUIT); + kill_Assoc(chat->assoc); free(chat->group); free(chat); }