[wmfs] Fix segfault (2 free -.-)

This commit is contained in:
Martin Duquesnoy 2008-10-13 01:44:27 +02:00
parent 839418b524
commit d01cb3a0ee
2 changed files with 1 additions and 3 deletions

View File

@ -415,8 +415,7 @@ unmapnotify(XEvent ev)
Client *c;
if((c = getclient(ev.xunmap.window)))
if(!c->hide)
unmanage(c);
unmanage(c);
return;
}

1
wmfs.c
View File

@ -878,7 +878,6 @@ unmanage(Client *c)
}
setwinstate(c->win, WithdrawnState);
free(c);
free(c->tbar);
XSync(dpy, False);
XUngrabServer(dpy);
arrange();