]> granicus.if.org Git - graphviz/commitdiff
partial fix for #1517 - free font options after use
authorellson <devnull@localhost>
Mon, 17 Nov 2008 13:20:34 +0000 (13:20 +0000)
committerellson <devnull@localhost>
Mon, 17 Nov 2008 13:20:34 +0000 (13:20 +0000)
plugin/pango/gvtextlayout_pango.c

index c725d5fb313e50c0c5e2456cd82c073b4b77ca7c..79ce4cb3f572fe8c4cce111bb206c229db0b8f7b 100644 (file)
@@ -83,7 +83,7 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath)
        cairo_font_options_set_hint_metrics(options,CAIRO_HINT_METRICS_ON);
        cairo_font_options_set_subpixel_order(options,CAIRO_SUBPIXEL_ORDER_BGR);
        pango_cairo_context_set_font_options(context, options);
-
+       cairo_font_options_destroy(options);
        g_object_unref(fontmap);
     }