From ca7ed79e77c011e84ed58ea200227564a909c383 Mon Sep 17 00:00:00 2001 From: Cameron White Date: Thu, 27 Aug 2020 20:38:56 -0400 Subject: [PATCH] Fix crash when accessing Pango.FontFamily.Faces This is similar to the fix for FontFamily in #35, and adds metadata for the parent class. Without this, I found that the conversion to GObject failed in GLib.Object.GetObject and the pointer was deleted, corrupting memory for the next call. Fixes: #159 --- Source/Libs/PangoSharp/PangoSharp.metadata | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Libs/PangoSharp/PangoSharp.metadata b/Source/Libs/PangoSharp/PangoSharp.metadata index 8b17b57d0..ec9df6bac 100644 --- a/Source/Libs/PangoSharp/PangoSharp.metadata +++ b/Source/Libs/PangoSharp/PangoSharp.metadata @@ -101,7 +101,9 @@ 1 1 PangoFontFamily + PangoFontFace PangoFontFamily + PangoFontFace /api/namespace/class[@name='Global'] /api/namespace/class[@name='Global']