summaryrefslogtreecommitdiff
path: root/pango/pango-fontmap.c
diff options
context:
space:
mode:
authorJohn Ralls <jralls@ceridwen.us>2012-07-20 14:45:16 -0700
committerJohn Ralls <jralls@ceridwen.us>2012-07-20 14:45:16 -0700
commit0686aea14d903fa73b01117adacba30f273ca4c4 (patch)
treeaec32b8317d54b68defe6ca828564f7503d49123 /pango/pango-fontmap.c
parentee3537107a0bc41d5e5b2dc5c71106dec42ad144 (diff)
downloadpango-0686aea14d903fa73b01117adacba30f273ca4c4.tar.gz
Bug 679654: Crash for PangoContext.list_families
Add transfer container annotations so that the array is freed but not the (static) family objects.
Diffstat (limited to 'pango/pango-fontmap.c')
-rw-r--r--pango/pango-fontmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c
index ea6bb574..aaea09e2 100644
--- a/pango/pango-fontmap.c
+++ b/pango/pango-fontmap.c
@@ -98,7 +98,7 @@ pango_font_map_load_font (PangoFontMap *fontmap,
/**
* pango_font_map_list_families:
* @fontmap: a #PangoFontMap
- * @families: (out) (array length=n_families): location to store a pointer to an array of #PangoFontFamily *.
+ * @families: (out) (array length=n_families) (transfer container): location to store a pointer to an array of #PangoFontFamily *.
* This array should be freed with g_free().
* @n_families: (out): location to store the number of elements in @families
*