diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-01-20 02:43:43 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-01-20 02:43:43 +0000 |
commit | 59074f13f87f09f493b0534da302f915a3f67a8f (patch) | |
tree | 36bd01f6d0b4416780f94591557e559799d630f7 /tests/test-font.c | |
parent | 0fe5b634963ca320485549f095683be3b3750168 (diff) | |
parent | b538d911d726ea72523413b75b864b52993fa178 (diff) | |
download | pango-59074f13f87f09f493b0534da302f915a3f67a8f.tar.gz |
Merge branch 'lsan_slice' into 'master'
Force malloc of g_slices in asan build
See merge request GNOME/pango!262
Diffstat (limited to 'tests/test-font.c')
-rw-r--r-- | tests/test-font.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-font.c b/tests/test-font.c index 486504f9..d02c7932 100644 --- a/tests/test-font.c +++ b/tests/test-font.c @@ -164,9 +164,12 @@ test_extents (void) PangoGlyphString *glyphs; PangoRectangle ink, log; PangoContext *context; + PangoFontDescription *desc; context = pango_font_map_create_context (pango_cairo_font_map_get_default ()); - pango_context_set_font_description (context, pango_font_description_from_string ("Cantarell 11")); + desc = pango_font_description_from_string("Cantarell 11"); + pango_context_set_font_description (context, desc); + pango_font_description_free (desc); items = pango_itemize (context, str, 0, strlen (str), NULL, NULL); glyphs = pango_glyph_string_new (); |