free temporary fontstr arrays - 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 d302f2efe13205f45f15f1e92113a44c55b0a0cd
DIR parent f6455efd52cdcfcb25030a8f3644162e8b861573
HTML Author: Markus Teich <markus.teich@stusta.mhn.de>
Date: Wed, 11 Nov 2015 18:53:54 +0100
free temporary fontstr arrays
Diffstat:
M sent.c | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/sent.c b/sent.c
@@ -562,6 +562,10 @@ void xloadfonts()
}
fonts[i] = drw_fontset_create(d, (const char**)fstrs, LEN(fstrs));
}
+
+ for (j = 0; j < LEN(fontfallbacks); j++)
+ if (fstrs[j])
+ free(fstrs[j]);
}
void bpress(XEvent *e)