[glib] gstring: Mark g_string_free() as taking (transfer full) input
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gstring: Mark g_string_free() as taking (transfer full) input
- Date: Wed, 2 Sep 2015 13:52:11 +0000 (UTC)
commit b77fe970dbbc3c1e2bfaca58aade6874f8530885
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Jan 14 10:44:12 2015 +0000
gstring: Mark g_string_free() as taking (transfer full) input
This is unusual, but the correct annotation for a free() function.
https://bugzilla.gnome.org/show_bug.cgi?id=742903
glib/gstring.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gstring.c b/glib/gstring.c
index dc60957..05c66d2 100644
--- a/glib/gstring.c
+++ b/glib/gstring.c
@@ -195,7 +195,7 @@ g_string_new_len (const gchar *init,
/**
* g_string_free:
- * @string: a #GString
+ * @string: (transfer full): a #GString
* @free_segment: if %TRUE, the actual character data is freed as well
*
* Frees the memory allocated for the #GString.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]