mirror of
https://github.com/Tha14/toxic.git
synced 2025-09-19 11:06:51 +02:00
potential seg fault
This commit is contained in:
@@ -121,10 +121,6 @@ void del_window(ToxWindow *w)
|
||||
{
|
||||
active_window = windows; // Go to prompt screen
|
||||
delwin(w->window);
|
||||
|
||||
if (w->x)
|
||||
free(w->x);
|
||||
|
||||
w->window = NULL;
|
||||
memset(w, 0, sizeof(ToxWindow));
|
||||
clear();
|
||||
|
Reference in New Issue
Block a user