---
st.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/st.c b/st.c
index 57cc4c4..087d2c9 100644
--- a/st.c
+++ b/st.c
@@ -2940,13 +2940,9 @@ xunloadfont(Font *f) {
void
xunloadfonts(void) {
- int i;
-
/* Free the loaded fonts in the font cache. */
- for(i = 0; i < frclen; i++) {
- XftFontClose(xw.dpy, frc[i].font);
- }
- frclen = 0;
+ while(frclen > 0)
+ XftFontClose(xw.dpy, frc[--frclen].font);
xunloadfont(&dc.font);
xunloadfont(&dc.bfont);
--
1.8.4- [dev] [st PATCH] Simplify xunloadfonts. noname
- Re: [dev] [st PATCH] Simplify xunloadfont... Roberto E. Vargas Caballero
