diff options
Diffstat (limited to 'tests/dbus/bug735437_client.c-expected')
-rw-r--r-- | tests/dbus/bug735437_client.c-expected | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/dbus/bug735437_client.c-expected b/tests/dbus/bug735437_client.c-expected index dae32bff8..0d1bf6e9e 100644 --- a/tests/dbus/bug735437_client.c-expected +++ b/tests/dbus/bug735437_client.c-expected @@ -482,8 +482,7 @@ _dbus_test_array (Test* self, g_variant_iter_init (&_arguments_iter, _parameters_); result = test_array (self, &result_length1, &error); if (error) { - g_dbus_method_invocation_return_gerror (invocation, error); - g_error_free (error); + g_dbus_method_invocation_take_error (invocation, error); return; } _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); @@ -522,8 +521,7 @@ _dbus_test_multi_array (Test* self, g_variant_iter_init (&_arguments_iter, _parameters_); result = test_multi_array (self, &result_length1, &result_length2, &error); if (error) { - g_dbus_method_invocation_return_gerror (invocation, error); - g_error_free (error); + g_dbus_method_invocation_take_error (invocation, error); return; } _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); @@ -569,8 +567,7 @@ _dbus_test_multi_array2 (Test* self, g_variant_iter_init (&_arguments_iter, _parameters_); result = test_multi_array2 (self, &result_length1, &result_length2, &result_length3, &error); if (error) { - g_dbus_method_invocation_return_gerror (invocation, error); - g_error_free (error); + g_dbus_method_invocation_take_error (invocation, error); return; } _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation)); |