1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 08:03:25 +01:00

Terminate notify before windows

This fixes a use after free bug
This commit is contained in:
jfreegman 2020-04-22 20:54:53 -04:00
parent 610906d07f
commit e7142e49fd
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -173,9 +173,11 @@ void exit_toxic_success(Tox *m)
{
store_data(m, DATA_FILE);
memset(&user_password, 0, sizeof(struct user_password));
terminate_notify();
kill_all_file_transfers(m);
kill_all_windows(m);
terminate_notify();
#ifdef AUDIO
#ifdef VIDEO