commit 9b38fda6feda68f95754d5b8932b1a69471df960
Author: Hiltjo Posthuma <[email protected]>
AuthorDate: Thu Jun 11 18:45:33 2020 +0200
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Thu Jun 11 18:45:33 2020 +0200
Fix memory leaks in drw
Synced from dwm.
Patch by Alex Flierl <[email protected]>, thanks.
diff --git a/drw.c b/drw.c
index 8fd1ca4..4cdbcbe 100644
--- 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);
}