]> Dogcows Code - chaz/openbox/commitdiff
destroy 'pat' always
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 06:42:04 +0000 (06:42 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 06:42:04 +0000 (06:42 +0000)
render/font.c

index 6e52c9abd53882670fc1cefa971d469ace3f1153..8996290f6d537ee2d4b11e3fe6b3123f894701ee 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;
 
@@ -112,6 +113,7 @@ RrFont *RrFontOpen(const RrInstance *inst, char *fontstring)
 void RrFontClose(RrFont *f)
 {
     if (f) {
+        g_message("freeing %p", f);
         XftFontClose(RrDisplay(f->inst), f->xftfont);
         g_free(f);
     }
This page took 0.022536 seconds and 4 git commands to generate.