aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-06-11 18:45:33 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-06-11 18:45:33 +0200
commit9b38fda6feda68f95754d5b8932b1a69471df960 (patch)
tree5e2be794ac97c2d0b4066d034a17eb9686699263
parentdb6093f6ec1bb884f7540f2512935b5254750b30 (diff)
Fix memory leaks in drw
Synced from dwm. Patch by Alex Flierl <shad0w73@freenet.de>, thanks.
-rw-r--r--drw.c1
1 files changed, 1 insertions, 0 deletions
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)
95{ 95{
96 XFreePixmap(drw->dpy, drw->drawable); 96 XFreePixmap(drw->dpy, drw->drawable);
97 XFreeGC(drw->dpy, drw->gc); 97 XFreeGC(drw->dpy, drw->gc);
98 drw_fontset_free(drw->fonts);
98 free(drw); 99 free(drw);
99} 100}
100 101