X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ffont.c;h=00f456fc71a5b9ec4a53422c6729ce64ffa1088a;hb=46d99fbaff396d7b596ece772a6349753c11a135;hp=6e52c9abd53882670fc1cefa971d469ace3f1153;hpb=4685a11530e32b513398607d0f38a7c761b33ad3;p=chaz%2Fopenbox diff --git a/render/font.c b/render/font.c index 6e52c9ab..00f456fc 100644 --- a/render/font.c +++ b/render/font.c @@ -28,7 +28,7 @@ static gboolean started = FALSE; 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 @@ static RrFont *openfont(const RrInstance *inst, char *fontstring) return NULL; match = XftFontMatch(RrDisplay(inst), RrScreen(inst), pat, &res); + FcPatternDestroy(pat); if (!match) return NULL;