[pango/matthiasc/for-main: 4/4] Add autoptr cleanup funcs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/matthiasc/for-main: 4/4] Add autoptr cleanup funcs
- Date: Sun, 29 Aug 2021 01:03:46 +0000 (UTC)
commit 14d4240a91655ab98896578f80f3f9273b4df799
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 27 22:05:16 2021 -0400
Add autoptr cleanup funcs
pango/pango-font.h | 2 ++
pango/pango-fontmap.h | 3 +++
2 files changed, 5 insertions(+)
---
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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]