summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/draw.c b/draw.c
index 74a47a6..56a1beb 100644
--- a/draw.c
+++ b/draw.c
@@ -88,13 +88,8 @@ setfont(const char *fontstr) {
if(dc.font.set)
XFreeFontSet(dpy, dc.font.set);
dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);
- if(missing) {
+ if(missing)
XFreeStringList(missing);
- if(dc.font.set) {
- XFreeFontSet(dpy, dc.font.set);
- dc.font.set = NULL;
- }
- }
if(dc.font.set) {
XFontSetExtents *font_extents;
XFontStruct **xfonts;