[hackers] [sent] free all fonts correctly || Markus Teich

From: <git_AT_suckless.org>
Date: Wed, 11 Nov 2015 19:15:33 +0100 (CET)

commit b23121b4aab274bd8e41d81145579ff93ba9a8f6
Author: Markus Teich <markus.teich_AT_stusta.mhn.de>
AuthorDate: Wed Nov 11 19:00:54 2015 +0100
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Wed Nov 11 19:00:54 2015 +0100

    free all fonts correctly

diff --git a/drw.c b/drw.c
index d9ccff9..a2dfe6c 100644
--- a/drw.c
+++ b/drw.c
_AT_@ -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
_AT_@ -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);
 
Received on Wed Nov 11 2015 - 19:15:33 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 11 2015 - 19:24:18 CET