fonts cleanup
authorMarkus Teich <markus.teich@stusta.mhn.de>
Mon, 27 Apr 2015 22:27:43 +0000 (00:27 +0200)
committerMarkus Teich <markus.teich@stusta.mhn.de>
Mon, 27 Apr 2015 22:27:43 +0000 (00:27 +0200)
sent.c

diff --git a/sent.c b/sent.c
index 6da23e834cc6e359c2b32c4c1ed99e1798e74236..39850c074ac2d0845611175547529aacb474aa01 100644 (file)
--- a/sent.c
+++ b/sent.c
@@ -329,6 +329,10 @@ void getfontsize(char *str, unsigned int *width, unsigned int *height)
 
 void cleanup()
 {
+       size_t i;
+
+       for (i = 0; i < NUMFONTSCALES; i++)
+               drw_fontset_free(fonts[i]);
        drw_scm_free(sc);
        drw_free(d);