From e34fbd2320676c20b4e27f1ff57564f945b1a3fa Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Tue, 5 Dec 2006 10:31:20 +0100 Subject: [PATCH] enforcing using imcomplete fonsets anyways --- dmenubar/config.mk | 2 +- dmenubar/draw.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/dmenubar/config.mk b/dmenubar/config.mk index b211c07..280a034 100644 --- a/dmenubar/config.mk +++ b/dmenubar/config.mk @@ -1,5 +1,5 @@ # dmenu version -VERSION = 1.5 +VERSION = 1.6 # Customize below to fit your system diff --git a/dmenubar/draw.c b/dmenubar/draw.c index 74a47a6..56a1beb 100644 --- a/dmenubar/draw.c +++ b/dmenubar/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;