This could be triggered by an error creating the output file, e.g. by
tests/bugs/unwritable-dir.sh.
if (font->desc != NULL)
pango_font_description_free (font->desc);
pango_font_metrics_unref (font->metrics);
if (font->desc != NULL)
pango_font_description_free (font->desc);
pango_font_metrics_unref (font->metrics);
- g_object_unref (font->layout);
+ if (font->layout != NULL)
+ g_object_unref (font->layout);
}
/* Cairo driver class. */
}
/* Cairo driver class. */