From b23121b4aab274bd8e41d81145579ff93ba9a8f6 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Wed, 11 Nov 2015 19:00:54 +0100 Subject: [PATCH] free all fonts correctly --- drw.c | 1 - sent.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drw.c b/drw.c index d9ccff9..a2dfe6c 100644 --- a/drw.c +++ b/drw.c @@ -87,7 +87,6 @@ drw_resize(Drw *drw, unsigned int w, unsigned int h) { void drw_free(Drw *drw) { - drw_fontset_free(drw->fonts); XFreePixmap(drw->dpy, drw->drawable); XFreeGC(drw->dpy, drw->gc); free(drw); diff --git a/sent.c b/sent.c index d5f7032..7a85a3f 100644 --- a/sent.c +++ b/sent.c @@ -334,6 +334,8 @@ void cleanup() { unsigned int i; + for (i = 0; i < NUMFONTSCALES; i++) + drw_fontset_free(fonts[i]); drw_scm_free(sc); drw_free(d);