wip
This commit is contained in:
@@ -114,13 +114,9 @@ static Fnt * xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern
|
||||
return font;
|
||||
}
|
||||
|
||||
static void
|
||||
xfont_free(Fnt *font)
|
||||
{
|
||||
if (!font)
|
||||
return;
|
||||
if (font->pattern)
|
||||
FcPatternDestroy(font->pattern);
|
||||
static void xfont_free(Fnt *font) {
|
||||
if (!font) return;
|
||||
if (font->pattern) FcPatternDestroy(font->pattern);
|
||||
XftFontClose(font->dpy, font->xfont);
|
||||
free(font);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user