-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pango_font_info: Fix runtime error messages from Pango
pango_coverage_get and pango_coverage_unref should not be called with coverage == nullptr. pango_font_get_coverage should not be called with font == nullptr. Otherwise Pango prints runtime error messages: (process:12657): Pango-CRITICAL **: pango_coverage_get: assertion 'coverage != NULL' failed (process:12657): Pango-CRITICAL **: pango_coverage_unref: assertion 'coverage != NULL' failed (process:12657): Pango-CRITICAL **: pango_font_get_coverage: assertion 'font != NULL' failed (process:12657): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed Typically those errors occur if a required font is not installed, so this can be a quite common error. Fix also a potential resource leak in PangoFontInfo::CoversUTF8Text. Signed-off-by: Stefan Weil <[email protected]>
- Loading branch information
Showing
1 changed file
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters