mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-30 08:26:45 +02:00
proper fix for segfault, credit to manuel-arguelles
This commit is contained in:
@ -120,9 +120,10 @@ int add_window(Tox *m, ToxWindow w)
|
||||
void del_window(ToxWindow *w)
|
||||
{
|
||||
active_window = windows; // Go to prompt screen
|
||||
|
||||
delwin(w->window);
|
||||
w->window = NULL;
|
||||
memset(w, 0, sizeof(ToxWindow));
|
||||
|
||||
clear();
|
||||
refresh();
|
||||
}
|
||||
|
Reference in New Issue
Block a user