1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-09-16 22:36:52 +02:00

Fix race condition when window is closed with active notifications

A ToxWindow's notifications need to be halted before the window is freed
This commit is contained in:
jfreegman
2020-11-10 17:20:40 -05:00
parent 16bcb27ca7
commit 752fc6d619
4 changed files with 41 additions and 6 deletions

View File

@@ -152,6 +152,7 @@ void kill_chat_window(ToxWindow *self, Tox *m)
free(statusbar);
disable_chatwin(self->num);
kill_notifs(self->active_box);
del_window(self);
}