Fix memory leaks in drw
authorHiltjo Posthuma <hiltjo@codemadness.org>
Thu, 11 Jun 2020 16:45:33 +0000 (18:45 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Thu, 11 Jun 2020 16:45:33 +0000 (18:45 +0200)
Synced from dwm.
Patch by Alex Flierl <shad0w73@freenet.de>, thanks.

drw.c

diff --git a/drw.c b/drw.c
index 8fd1ca4..4cdbcbe 100644 (file)
--- a/drw.c
+++ b/drw.c
@@ -95,6 +95,7 @@ drw_free(Drw *drw)
 {
        XFreePixmap(drw->dpy, drw->drawable);
        XFreeGC(drw->dpy, drw->gc);
+       drw_fontset_free(drw->fonts);
        free(drw);
 }