Introduction
Introduction Statistics Contact Development Disclaimer Help
free all fonts correctly - sent - simple plaintext presentation tool
git clone git://git.suckless.org/sent
Log
Files
Refs
README
LICENSE
---
commit b23121b4aab274bd8e41d81145579ff93ba9a8f6
parent d302f2efe13205f45f15f1e92113a44c55b0a0cd
Author: Markus Teich <[email protected]>
Date: Wed, 11 Nov 2015 19:00:54 +0100
free all fonts correctly
Diffstat:
M drw.c | 1 -
M sent.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);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.