From: Markus Teich Date: Wed, 11 Nov 2015 17:53:54 +0000 (+0100) Subject: free temporary fontstr arrays X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=d302f2efe13205f45f15f1e92113a44c55b0a0cd;p=sent.git free temporary fontstr arrays --- diff --git a/sent.c b/sent.c index a263aaf..d5f7032 100644 --- 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)