all repos — openbox @ dd489976687342c82bb8c8e884a7af7c08d364fc

openbox fork - make it a bit more like ryudo

fix two memleaks
Mikael Magnusson mikachu@comhem.se
commit

dd489976687342c82bb8c8e884a7af7c08d364fc

parent

e0aa54a8912e34e94d42872dba95ade0fda7fdca

2 files changed, 4 insertions(+), 3 deletions(-)

jump to
M render/font.crender/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.crender/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);