summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-19 12:27:43 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-03-19 12:27:43 +0000
commite2b86200e54ce8b7917f36bb09fa45dc5dbd66a8 (patch)
treece7256f0120ce6110d20c96f2f7db610f162861d /pango/pango-layout.c
parentf05be99189d928c3ebfeb8c6b6fded34cdca6671 (diff)
parent4c02b0ad0a9d8f5fc3b09ae7ae45abf142f99d23 (diff)
downloadpango-e2b86200e54ce8b7917f36bb09fa45dc5dbd66a8.tar.gz
Merge branch 'memdup2' into 'master'
Memdup2 See merge request GNOME/pango!300
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 5298647e..1f86150e 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -6186,8 +6186,8 @@ pango_layout_iter_copy (PangoLayoutIter *iter)
new->line_extents = NULL;
if (iter->line_extents != NULL)
{
- new->line_extents = g_memdup (iter->line_extents,
- iter->layout->line_count * sizeof (Extents));
+ new->line_extents = g_memdup2 (iter->line_extents,
+ iter->layout->line_count * sizeof (Extents));
}
new->line_index = iter->line_index;