diff options
-rw-r--r-- | telepathy-glib/base-client.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/telepathy-glib/base-client.c b/telepathy-glib/base-client.c index 8728a6310..6bbb380cf 100644 --- a/telepathy-glib/base-client.c +++ b/telepathy-glib/base-client.c @@ -1587,8 +1587,7 @@ out: if (error == NULL) return; - dbus_g_method_return_error (context, error); - g_error_free (error); + g_dbus_method_invocation_take_error (context, error); } static void @@ -1765,9 +1764,7 @@ out: if (error == NULL) return; - dbus_g_method_return_error (context, error); - g_error_free (error); - + g_dbus_method_invocation_take_error (context, error); } static void @@ -2083,8 +2080,7 @@ out: if (error == NULL) return; - dbus_g_method_return_error (context, error); - g_error_free (error); + g_dbus_method_invocation_take_error (context, error); } static void @@ -2200,8 +2196,7 @@ _tp_base_client_add_request (TpSvcClientInterfaceRequests *iface, err: g_clear_object (&account); - dbus_g_method_return_error (context, error); - g_error_free (error); + g_dbus_method_invocation_take_error (context, error); } static void |