diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-03-19 12:27:43 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-03-19 12:27:43 +0000 |
commit | e2b86200e54ce8b7917f36bb09fa45dc5dbd66a8 (patch) | |
tree | ce7256f0120ce6110d20c96f2f7db610f162861d /pango/pangoft2-render.c | |
parent | f05be99189d928c3ebfeb8c6b6fded34cdca6671 (diff) | |
parent | 4c02b0ad0a9d8f5fc3b09ae7ae45abf142f99d23 (diff) | |
download | pango-e2b86200e54ce8b7917f36bb09fa45dc5dbd66a8.tar.gz |
Merge branch 'memdup2' into 'master'
Memdup2
See merge request GNOME/pango!300
Diffstat (limited to 'pango/pangoft2-render.c')
-rw-r--r-- | pango/pangoft2-render.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c index 45230fdb..45ac5820 100644 --- a/pango/pangoft2-render.c +++ b/pango/pangoft2-render.c @@ -25,6 +25,7 @@ #include "pango-font-private.h" #include "pangoft2-private.h" +#include "pango-impl-utils.h" /* for compatibility with older freetype versions */ #ifndef FT_LOAD_TARGET_MONO @@ -227,8 +228,8 @@ pango_ft2_font_render_glyph (PangoFont *font, ft_render_mode_mono : ft_render_mode_normal)); rendered->bitmap = face->glyph->bitmap; - rendered->bitmap.buffer = g_memdup (face->glyph->bitmap.buffer, - face->glyph->bitmap.rows * face->glyph->bitmap.pitch); + rendered->bitmap.buffer = g_memdup2 (face->glyph->bitmap.buffer, + face->glyph->bitmap.rows * face->glyph->bitmap.pitch); rendered->bitmap_left = face->glyph->bitmap_left; rendered->bitmap_top = face->glyph->bitmap_top; |