From 631f2c10117dd54f72676f8a0adc668c90f1ca97 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 16 Sep 2013 13:12:13 +0200 Subject: 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 file 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) -- cgit v1.2.1