mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:43:02 +01:00
Terminate notify before windows
This fixes a use after free bug
This commit is contained in:
parent
610906d07f
commit
e7142e49fd
@ -173,9 +173,11 @@ void exit_toxic_success(Tox *m)
|
|||||||
{
|
{
|
||||||
store_data(m, DATA_FILE);
|
store_data(m, DATA_FILE);
|
||||||
memset(&user_password, 0, sizeof(struct user_password));
|
memset(&user_password, 0, sizeof(struct user_password));
|
||||||
|
|
||||||
|
terminate_notify();
|
||||||
|
|
||||||
kill_all_file_transfers(m);
|
kill_all_file_transfers(m);
|
||||||
kill_all_windows(m);
|
kill_all_windows(m);
|
||||||
terminate_notify();
|
|
||||||
|
|
||||||
#ifdef AUDIO
|
#ifdef AUDIO
|
||||||
#ifdef VIDEO
|
#ifdef VIDEO
|
||||||
|
Loading…
Reference in New Issue
Block a user