sent

simple plaintext presentation tool
git clone git://git.suckless.org/sent
Log | Files | Refs | README | LICENSE

commit b23121b4aab274bd8e41d81145579ff93ba9a8f6
parent d302f2efe13205f45f15f1e92113a44c55b0a0cd
Author: Markus Teich <markus.teich@stusta.mhn.de>
Date:   Wed, 11 Nov 2015 19:00:54 +0100

free all fonts correctly

Diffstat:
Mdrw.c | 1-
Msent.c | 2++
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 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 @@ -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);