--- 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 _AT_@ -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.4Received on Mon Apr 28 2014 - 00:41:17 CEST
This archive was generated by hypermail 2.3.0 : Mon Apr 28 2014 - 00:48:07 CEST