summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-06-07 17:42:15 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-06-10 14:51:26 +0100
commitb47a9af03b3154401cdd863f6b76c2393e2e7e39 (patch)
tree0a8fc92b292feaecdbe1cf47b974ade48b4bc89a
parent8e6b3438e6ec8f94ad83786ea60d183f23c2a8fe (diff)
downloadtelepathy-glib-b47a9af03b3154401cdd863f6b76c2393e2e7e39.tar.gz
tp_debug_client_get_messages_finish: fix annotation
Returning a GPtrArray with (transfer full) means the caller is expected to do the equivalent of: g_ptr_array_foreach (pa, (GFunc) g_free, NULL); g_ptr_array_unref (pa); whereas we just want them to unref it. This crashed my g-i-based debug-client. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65518 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
-rw-r--r--telepathy-glib/debug-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/telepathy-glib/debug-client.c b/telepathy-glib/debug-client.c
index 113ac3ff3..89712db40 100644
--- a/telepathy-glib/debug-client.c
+++ b/telepathy-glib/debug-client.c
@@ -536,8 +536,8 @@ tp_debug_client_get_messages_async (
*
* Finishes tp_debug_client_set_enabled_async().
*
- * Returns: (transfer full) (type GLib.PtrArray) (element-type TelepathyGLib.DebugMessage):
- * a #GPtrArray of #TpDebugMessage
+ * Returns: (transfer container) (type GLib.PtrArray) (element-type TelepathyGLib.DebugMessage):
+ * a #GPtrArray of #TpDebugMessage, free with g_ptr_array_unref()
*
* Since: 0.19.0
*/