Fix memory leaks in drw
authorAlex Flierl <shad0w73@freenet.de>
Thu, 11 Jun 2020 13:28:32 +0000 (15:28 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Thu, 11 Jun 2020 16:32:21 +0000 (18:32 +0200)
The function drw_fontset_free in drw.c was never called.

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);
 }