[pango/get-config-docs] Clarify docs of pango_fc_fontmap_get_config




commit 39e3fc36c4d8e21fbc9d01832167db2b4566950e
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 1 07:13:55 2021 -0400

    Clarify docs of pango_fc_fontmap_get_config
    
    The return value is owned by Pango. transfer=none doesn't
    really work for non-GObject types, so just spell it out.
    
    Fixes: #572

 pango/pangofc-fontmap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 77a7177b..473dd797 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -2337,7 +2337,8 @@ pango_fc_font_map_set_config (PangoFcFontMap *fcfontmap,
  * See also: [method@PangoFc.FontMap.set_config].
  *
  * Returns: (nullable): the `FcConfig` object attached to
- *   @fcfontmap, which might be %NULL.
+ *   @fcfontmap, which might be %NULL. The return value is
+ *   owned by Pango and should not be freed.
  *
  * Since: 1.38
  */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]