Fix transfer annotation for pango_font_family_list_faces
authorPavel Holejsovsky <pholejs@src.gnome.org>
Sun, 3 Jun 2012 20:32:56 +0000 (22:32 +0200)
committerPavel Holejsovsky <pholejs@src.gnome.org>
Mon, 4 Jun 2012 18:36:13 +0000 (20:36 +0200)
The documentation says 'This array should be freed with g_free() when
it is no longer needed', which really translates to (transfer
container) in introspection annotation jargon.

https://bugzilla.gnome.org/show_bug.cgi?id=677407

pango/fonts.c

index 6d35f83..b11da44 100644 (file)
@@ -1919,9 +1919,10 @@ pango_font_family_get_name (PangoFontFamily  *family)
 /**
  * pango_font_family_list_faces:
  * @family: a #PangoFontFamily
- * @faces: (out) (allow-none) (array length=n_faces): location to store an array of pointers to #PangoFontFace
- *   objects, or %NULL. This array should be freed with g_free()
- *   when it is no longer needed.
+ * @faces: (out) (allow-none) (array length=n_faces) (transfer container):
+ *   location to store an array of pointers to #PangoFontFace objects,
+ *   or %NULL. This array should be freed with g_free() when it is no
+ *   longer needed.
  * @n_faces: (out): location to store number of elements in @faces.
  *
  * Lists the different font faces that make up @family. The faces