cairo-util: Add missing HAVE_PANGO guard

For pango_cairo_font_map_set_default().

Fixes #720

Suggested-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2023-02-20 12:27:49 +02:00 committed by Pekka Paalanen
parent 06365e602b
commit 7aac1acad8
1 changed files with 2 additions and 0 deletions

View File

@ -694,7 +694,9 @@ cleanup_after_cairo(void)
/* some clients, particular weston-editor, still creates indirectly a
* new font map; this makes sure we untie that up and avoid an assert
* from cairo */
#ifdef HAVE_PANGO
pango_cairo_font_map_set_default(NULL);
#endif
cairo_debug_reset_static_data();
#ifdef HAVE_PANGO
FcFini();