summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-27 22:05:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-28 21:01:21 -0400
commit14d4240a91655ab98896578f80f3f9273b4df799 (patch)
tree3fb36b0de04a816be7f2cbf0029e4e62f0ee2902
parent6924489203c20e5462ed19ee714c53b02393f1b0 (diff)
downloadpango-14d4240a91655ab98896578f80f3f9273b4df799.tar.gz
Add autoptr cleanup funcs
-rw-r--r--pango/pango-font.h2
-rw-r--r--pango/pango-fontmap.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h
index e7272e3e..6b78c2ed 100644
--- a/pango/pango-font.h
+++ b/pango/pango-font.h
@@ -664,6 +664,8 @@ PangoLanguage ** pango_font_get_languages (PangoFont *font);
#endif
#endif
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoFont, g_object_unref)
+
G_END_DECLS
#endif /* __PANGO_FONT_H__ */
diff --git a/pango/pango-fontmap.h b/pango/pango-fontmap.h
index 0e0edd43..cc85899b 100644
--- a/pango/pango-fontmap.h
+++ b/pango/pango-fontmap.h
@@ -124,6 +124,9 @@ PANGO_AVAILABLE_IN_1_46
PangoFontFamily *pango_font_map_get_family (PangoFontMap *fontmap,
const char *name);
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoFontMap, g_object_unref)
+
G_END_DECLS
#endif /* __PANGO_FONTMAP_H__ */