all repos — openbox @ ef1f7b04949317a3ddfdd6c61651eb8ffca18f5f

openbox fork - make it a bit more like ryudo

allow closing NULL fonts
Dana Jansens danakj@orodu.net
commit

ef1f7b04949317a3ddfdd6c61651eb8ffca18f5f

parent

2d9c03a44125c4fa51fd2e4b3054ee9395ff6150

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M render/font.crender/font.c

@@ -68,8 +68,10 @@ }

void font_close(ObFont *f) { - XftFontClose(ob_display, f->xftfont); - g_free(f); + if (f) { + XftFontClose(ob_display, f->xftfont); + g_free(f); + } } int font_measure_string(ObFont *f, char *str, int shadow, int offset)