summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2019-10-14 21:09:46 +0200
committerCorentin Noël <corentin@elementary.io>2019-10-15 18:45:33 +0200
commitf3239364efcd91ba29c79e4122820805660138b3 (patch)
tree0be7127f951615f80cfa50682f0a0d476ebcbec2
parent5909d61675da972a58cff7990c6f1196f0787698 (diff)
downloadlibical-git-f3239364efcd91ba29c79e4122820805660138b3.tar.gz
libical-glib: Correct annotation of i_cal_property_set_parameter()
The ICalParameter argument is not consumed by the function, thus it cannot use 'transfer full' for it. It could cause memory leaks in python and similar languages, which depend on the introspection code.
-rw-r--r--src/libical-glib/api/i-cal-property.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libical-glib/api/i-cal-property.xml b/src/libical-glib/api/i-cal-property.xml
index 16845ae2..7d4588d7 100644
--- a/src/libical-glib/api/i-cal-property.xml
+++ b/src/libical-glib/api/i-cal-property.xml
@@ -65,7 +65,7 @@
</method>
<method name="i_cal_property_set_parameter" corresponds="icalproperty_set_parameter" since="1.0">
<parameter type="ICalProperty *" name="prop" comment="The #ICalProperty to be set."/>
- <parameter type="ICalParameter *" name="parameter" annotation="transfer full" owner_op="prop" comment="The parameter to be set into @prop."/>
+ <parameter type="ICalParameter *" name="parameter" annotation="transfer none" owner_op="prop" comment="The parameter to be set into @prop."/>
<comment xml:space="preserve">Set a #ICalParameter into the #ICalProperty. It behaves like set the copy of the #ICalParameter. Upon completion the native part of #ICalParameter will be set to NULL.</comment>
</method>
<method name="i_cal_property_set_parameter_from_string" corresponds="icalproperty_set_parameter_from_string" since="1.0">