From: cyreve Date: Mon, 29 May 2006 20:02:47 +0000 (+0000) Subject: crash when we try to rasterise with a font that pango can't cope with X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a05d7c3dfd25e6e7d91cc597e70e19d544ae961b;p=inkscape.git crash when we try to rasterise with a font that pango can't cope with --- diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp index b55dc50c2..32f71aed0 100644 --- a/src/libnrtype/FontFactory.cpp +++ b/src/libnrtype/FontFactory.cpp @@ -389,8 +389,10 @@ font_instance *font_factory::Face(PangoFontDescription *descr, bool canFail) // no match if ( canFail ) { PANGO_DEBUG("falling back to Sans\n"); + descr = pango_font_description_new(); pango_font_description_set_family(descr,"Sans"); res = Face(descr,false); + pango_font_description_free(descr); } } } else {