[pango] testiter: Don't leak PangoFontDescriptions



commit c53d56212a3491ea3eeb49f7e38391eb95dfe671
Author: Timm Bäder <mail baedert org>
Date:   Sat Oct 7 18:11:43 2017 +0200

    testiter: Don't leak PangoFontDescriptions
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788643

 tests/testiter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/testiter.c b/tests/testiter.c
index a172a23..de3b462 100644
--- a/tests/testiter.c
+++ b/tests/testiter.c
@@ -237,6 +237,7 @@ test_layout_iter (void)
 
   g_object_unref (layout);
   g_object_unref (context);
+  pango_font_description_free (font_desc);
 }
 
 static void
@@ -290,6 +291,7 @@ test_glyphitem_iter (void)
 
   g_object_unref (layout);
   g_object_unref (context);
+  pango_font_description_free (font_desc);
 }
 
 int


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