static void font_startup(void)
{
if (!XftInit(0)) {
- g_warning(_("Couldn't initialize Xft.\n"));
+ g_warning(_("Couldn't initialize Xft."));
exit(EXIT_FAILURE);
}
FcNameRegisterObjectTypes(objs, (sizeof(objs) / sizeof(objs[0])));
return NULL;
match = XftFontMatch(RrDisplay(inst), RrScreen(inst), pat, &res);
+ FcPatternDestroy(pat);
if (!match)
return NULL;
void RrFontClose(RrFont *f)
{
if (f) {
+ g_message("freeing %p", f);
XftFontClose(RrDisplay(f->inst), f->xftfont);
g_free(f);
}