all repos — openbox @ 3dc4750ea40e0be19fc03b13553265adb7676bda

openbox fork - make it a bit more like ryudo

destroy 'pat' always
Dana Jansens danakj@orodu.net
commit

3dc4750ea40e0be19fc03b13553265adb7676bda

parent

d634731fcac81a33e3eb5a5102e926a3c9de953e

1 files changed, 3 insertions(+), 1 deletions(-)

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

@@ -28,7 +28,7 @@

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])));

@@ -56,6 +56,7 @@ if (!(pat = XftNameParse(fontstring)))

return NULL; match = XftFontMatch(RrDisplay(inst), RrScreen(inst), pat, &res); + FcPatternDestroy(pat); if (!match) return NULL;

@@ -112,6 +113,7 @@

void RrFontClose(RrFont *f) { if (f) { + g_message("freeing %p", f); XftFontClose(RrDisplay(f->inst), f->xftfont); g_free(f); }