1
0
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:
Jfreegman
2013-08-30 20:13:29 -04:00
parent 3d062ca15b
commit b99ce9ce46
2 changed files with 21 additions and 14 deletions

View File

@ -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();
}