]> Dogcows Code - chaz/openbox/blobdiff - render/font.c
add some interesection shit, and RECT_LEFT/RIGHT/TOP/BOTTOM
[chaz/openbox] / render / font.c
index 6e52c9abd53882670fc1cefa971d469ace3f1153..00f456fc71a5b9ec4a53422c6729ce64ffa1088a 100644 (file)
@@ -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;
 
This page took 0.022104 seconds and 4 git commands to generate.