[dwm][PATCH] Fix memory leaks in drw

The function drw_fontset_free in drw.c was never called.
This commit is contained in:
bakkeby 2020-06-11 19:58:00 +02:00
parent 8c4eaccf16
commit 2643894570

5
drw.c
View File

@ -115,6 +115,11 @@ drw_free(Drw *drw)
{
XFreePixmap(drw->dpy, drw->drawable);
XFreeGC(drw->dpy, drw->gc);
#if PANGO_PATCH
drw_font_free(drw->font);
#else
drw_fontset_free(drw->fonts);
#endif // PANGO_PATCH
free(drw);
}