1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 19:46:46 +02:00

potential seg fault

This commit is contained in:
Jfreegman
2013-08-29 23:14:09 -04:00
parent 4f2e80ef28
commit 3d062ca15b
2 changed files with 1 additions and 8 deletions

View File

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