fix two memleaks
Mikael Magnusson mikachu@comhem.se
2 files changed,
4 insertions(+),
3 deletions(-)
M
render/font.c
→
render/font.c
@@ -203,12 +203,12 @@
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,
M
render/render.c
→
render/render.c
@@ -329,6 +329,7 @@ a->texture[i].data.text.string);
*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);