summaryrefslogtreecommitdiffhomepage
path: root/drw.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-06-11 19:58:00 +0200
committerbakkeby <[email protected]>2020-06-11 16:58:08 +0200
commit2643894570f2ba114af9f9241d0a6c3b2cf177c8 (patch)
treec37796f053eba704e930afdee1461b3549f54250 /drw.c
parent8c4eaccf16b533cefe34b090e970ff66911a2a7b (diff)
downloaddwm-flexipatch-2643894570f2ba114af9f9241d0a6c3b2cf177c8.tar.gz
dwm-flexipatch-2643894570f2ba114af9f9241d0a6c3b2cf177c8.zip
[dwm][PATCH] Fix memory leaks in drw
The function drw_fontset_free in drw.c was never called.
Diffstat (limited to 'drw.c')
-rw-r--r--drw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drw.c b/drw.c
index ea17da9..bfc66be 100644
--- a/drw.c
+++ b/drw.c
@@ -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);
}