summaryrefslogtreecommitdiff
path: root/tests/dbus/filedescriptor-errors_client.c-expected
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-11-10 15:35:53 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2021-11-12 15:32:53 +0100
commit6d6190135b9afcee409232a96dc2123698316797 (patch)
tree869e721c4449fb10b02fce6602004692946a5efa /tests/dbus/filedescriptor-errors_client.c-expected
parentaf730d4eef2879b487fff6f949a01b69b3b78f5f (diff)
downloadvala-6d6190135b9afcee409232a96dc2123698316797.tar.gz
gdbus: Use g_dbus_method_invocation_take_error() as simplification
Diffstat (limited to 'tests/dbus/filedescriptor-errors_client.c-expected')
-rw-r--r--tests/dbus/filedescriptor-errors_client.c-expected6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/dbus/filedescriptor-errors_client.c-expected b/tests/dbus/filedescriptor-errors_client.c-expected
index dde04e5dd..81354210a 100644
--- a/tests/dbus/filedescriptor-errors_client.c-expected
+++ b/tests/dbus/filedescriptor-errors_client.c-expected
@@ -244,14 +244,12 @@ _dbus_test_test (Test* self,
g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_FAILED, "FD List is NULL");
}
if (error) {
- g_dbus_method_invocation_return_gerror (invocation, error);
- g_error_free (error);
+ g_dbus_method_invocation_take_error (invocation, error);
goto _error;
}
result = test_test (self, output_stream, &error);
if (error) {
- g_dbus_method_invocation_return_gerror (invocation, error);
- g_error_free (error);
+ g_dbus_method_invocation_take_error (invocation, error);
goto _error;
}
_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));