[hackers] [dwm][PATCH] Fix memory leaks in drw

From: Alex Flierl <shad0w73_AT_freenet.de>
Date: Thu, 11 Jun 2020 15:28:32 +0200

The function drw_fontset_free in drw.c was never called.
---
 drw.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drw.c b/drw.c
index 8fd1ca4..4cdbcbe 100644
--- a/drw.c
+++ b/drw.c
_AT_@ -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);
 }
 
-- 
2.27.0
Received on Thu Jun 11 2020 - 15:28:32 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 11 2020 - 16:12:33 CEST