void RrFontClose(RrFont *f)
{
if (f) {
+#ifdef USE_PANGO
+ pango_font_description_free(f->pango_font_description);
+#endif
XftFontClose(RrDisplay(f->inst), f->xftfont);
g_free(f);
}
-#ifdef USE_PANGO
- pango_font_description_free(f->pango_font_description);
-#endif
}
static void font_measure_full(const RrFont *f, const gchar *str,
*w = MAX(*w, m->width + 4);
m->height = RrFontHeight(a->texture[i].data.text.font);
*h += MAX(*h, m->height);
+ g_free(m);
break;
case RR_TEXTURE_RGBA:
*w += MAX(*w, a->texture[i].data.rgba.width);