[pango/pango2: 50/135] layout: Fix a reference miscount




commit 56a506fb2b99191c727ce620d9aea284dcd695db
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 24 13:35:52 2022 -0500

    layout: Fix a reference miscount

 pango/pango-layout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index b77b948b..0e8945fc 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -702,7 +702,7 @@ retry:
           last = pango_lines_get_line (layout->lines,
                                        pango_lines_get_line_count (layout->lines) - 1,
                                        NULL, NULL);
-          data = last->data;
+          data = line_data_ref (last->data);
           start_index = data->length;
           start_offset = last->data->n_chars;
           offset = MAX (layout->indent, 0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]