mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
72ea8b1df7
commit
52348e1587
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user