[hackers] [sent] free temporary fontstr arrays || Markus Teich
commit d302f2efe13205f45f15f1e92113a44c55b0a0cd
Author: Markus Teich <markus.teich_AT_stusta.mhn.de>
AuthorDate: Wed Nov 11 18:53:54 2015 +0100
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Wed Nov 11 18:53:54 2015 +0100
free temporary fontstr arrays
diff --git a/sent.c b/sent.c
index a263aaf..d5f7032 100644
--- a/sent.c
+++ b/sent.c
_AT_@ -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)
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:16 CET