free all fonts correctly

This commit is contained in:
Markus Teich 2015-11-11 19:00:54 +01:00
parent d302f2efe1
commit b23121b4aa
2 changed files with 2 additions and 1 deletions

1
drw.c
View File

@ -87,7 +87,6 @@ drw_resize(Drw *drw, unsigned int w, unsigned int h) {
void void
drw_free(Drw *drw) { drw_free(Drw *drw) {
drw_fontset_free(drw->fonts);
XFreePixmap(drw->dpy, drw->drawable); XFreePixmap(drw->dpy, drw->drawable);
XFreeGC(drw->dpy, drw->gc); XFreeGC(drw->dpy, drw->gc);
free(drw); free(drw);

2
sent.c
View File

@ -334,6 +334,8 @@ void cleanup()
{ {
unsigned int i; unsigned int i;
for (i = 0; i < NUMFONTSCALES; i++)
drw_fontset_free(fonts[i]);
drw_scm_free(sc); drw_scm_free(sc);
drw_free(d); drw_free(d);