[pango/line-breaker] layout: Fix an oversight



commit 4c9d3a2222b3921d3c6ed5eabd0d8a90f458ffed
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 25 20:48:44 2022 -0500

    layout: Fix an oversight

 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 1810e128..e6587c0f 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -677,7 +677,7 @@ retry:
         {
           if (pango_line_breaker_undo_line (breaker, line))
             {
-              g_clear_object (&line);
+              g_clear_pointer (&line, pango_line_free);
               ellipsize = layout->ellipsize;
               goto retry;
             }


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