[librest] Fix rest_proxy_call_get_params() API doc
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest] Fix rest_proxy_call_get_params() API doc
- Date: Fri, 20 Sep 2013 09:45:41 +0000 (UTC)
commit 631f2c10117dd54f72676f8a0adc668c90f1ca97
Author: Christophe Fergeau <cfergeau redhat com>
Date: Mon Sep 16 13:12:13 2013 +0200
Fix rest_proxy_call_get_params() API doc
The returned type was wrong as well as who owns the returned memory,
which could lead to memory corruption.
rest/rest-proxy-call.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index a6533c3..17121ac 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -508,10 +508,11 @@ rest_proxy_call_remove_param (RestProxyCall *call,
* rest_proxy_call_get_params:
* @call: The #RestProxyCall
*
- * Get the parameters as a #GHashTable of parameter names to values. The caller
- * should call g_hash_table_unref() when they have finished using it.
+ * Get the parameters as a #GHashTable of parameter names to values. The
+ * returned value is owned by the RestProxyCall instance and should not
+ * be freed by the caller.
*
- * Returns: A #GHashTable.
+ * Returns: A #RestParams.
*/
RestParams *
rest_proxy_call_get_params (RestProxyCall *call)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]