]> Dogcows Code - chaz/openbox/blobdiff - render/font.c
Update the send-to window only if the workspaces have changed.
[chaz/openbox] / render / font.c
index 2fce1dd44a15afb21a09e5a05b60c3f032ee70b9..9c42fcbcf4b715ee47b3947b11ddb0cc665e15f2 100644 (file)
@@ -57,7 +57,6 @@ static RrFont *openfont(const RrInstance *inst, char *fontstring)
         return NULL;
 
     match = XftFontMatch(RrDisplay(inst), RrScreen(inst), pat, &res);
-    FcPatternDestroy(pat);
     if (!match)
         return NULL;
 
@@ -66,7 +65,6 @@ static RrFont *openfont(const RrInstance *inst, char *fontstring)
 
     if (FcPatternGetBool(match, OB_SHADOW, 0, &out->shadow) != FcResultMatch)
         out->shadow = FALSE;
-    g_message("shadow %d", out->shadow);
 
     if (FcPatternGetInteger(match, OB_SHADOW_OFFSET, 0, &out->offset) !=
         FcResultMatch)
@@ -79,8 +77,8 @@ static RrFont *openfont(const RrInstance *inst, char *fontstring)
     out->tint = tint;
 
     font = XftFontOpenPattern(RrDisplay(inst), match);
-    FcPatternDestroy(match);
     if (!font) {
+        FcPatternDestroy(match);
         g_free(out);
         return NULL;
     } else
This page took 0.021143 seconds and 4 git commands to generate.