fonts cleanup - sent - simple plaintext presentation tool
HTML git clone git://git.suckless.org/sent
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 8606d72cedf0199e2cf03e421488f5b88896cecf
DIR parent e9261114fe797102a85852b0dc4ab62f3b208520
HTML Author: Markus Teich <markus.teich@stusta.mhn.de>
Date: Tue, 28 Apr 2015 00:27:43 +0200
fonts cleanup
Diffstat:
M sent.c | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git 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);