diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnrtype/FontFactory.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |
