Bug 628324 – Invalid reads in gdbus-export test

Looks like we forgot to ref the returned GVariant in
g_dbus_proxy_call_finish().

It's a good question why code using g_dbus_proxy_call() and
g_dbus_proxy_call_finish() worked in the first place - probably the
answer is that no-one really used these APIs.

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2010-08-30 13:45:46 -04:00
parent 72ea8b1df7
commit 52348e1587

View File

@ -2372,7 +2372,7 @@ g_dbus_proxy_call_finish (GDBusProxy *proxy,
if (g_simple_async_result_propagate_error (simple, error))
goto out;
value = g_simple_async_result_get_op_res_gpointer (simple);
value = g_variant_ref (g_simple_async_result_get_op_res_gpointer (simple));
method_name = g_object_get_data (G_OBJECT (simple), "-gdbus-proxy-method-name");
out: