[glib] gdbusintrospection: fix introspection annotations
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbusintrospection: fix introspection annotations
- Date: Wed, 20 Jul 2011 17:49:48 +0000 (UTC)
commit 4e015d36a06a896c8f5ec575c1b02fedefe47397
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Fri Jul 1 01:59:13 2011 +0200
gdbusintrospection: fix introspection annotations
g_dbus_interface_info_lookup_* were incorrectly considered
(transfer full) by introspected bindings, and this caused memory
corruptions.
https://bugzilla.gnome.org/show_bug.cgi?id=622921
gio/gdbusintrospection.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gdbusintrospection.c b/gio/gdbusintrospection.c
index 9d9d337..39f5765 100644
--- a/gio/gdbusintrospection.c
+++ b/gio/gdbusintrospection.c
@@ -1909,7 +1909,7 @@ static GHashTable *info_cache = NULL;
* This cost of this function is O(n) in number of methods unless
* g_dbus_interface_info_cache_build() has been used on @info.
*
- * Returns: A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned by @info.
+ * Returns: (transfer none): A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned by @info.
*
* Since: 2.26
*/
@@ -1963,7 +1963,7 @@ g_dbus_interface_info_lookup_method (GDBusInterfaceInfo *info,
* This cost of this function is O(n) in number of signals unless
* g_dbus_interface_info_cache_build() has been used on @info.
*
- * Returns: A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned by @info.
+ * Returns: (transfer none): A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned by @info.
*
* Since: 2.26
*/
@@ -2017,7 +2017,7 @@ g_dbus_interface_info_lookup_signal (GDBusInterfaceInfo *info,
* This cost of this function is O(n) in number of properties unless
* g_dbus_interface_info_cache_build() has been used on @info.
*
- * Returns: A #GDBusPropertyInfo or %NULL if not found. Do not free, it is owned by @info.
+ * Returns: (transfer none): A #GDBusPropertyInfo or %NULL if not found. Do not free, it is owned by @info.
*
* Since: 2.26
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]