[gnome-bluetooth/wip/hadess/battery-reporting: 1/4] lib: Use g_auto for this error
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/battery-reporting: 1/4] lib: Use g_auto for this error
- Date: Mon, 24 Jan 2022 10:14:44 +0000 (UTC)
commit 255745709af3bdb2b4ef5f2785aa804a0852336b
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 24 10:35:03 2022 +0100
lib: Use g_auto for this error
lib/bluetooth-client.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 5b62f695..9fbb1195 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -798,14 +798,13 @@ object_manager_new_callback(GObject *source_object,
GDBusObjectManager *manager;
g_autolist(GDBusObject) object_list = NULL;
g_autolist(GDBusProxy) adapter_list = NULL;
+ g_autoptr(GError) error = NULL;
GList *l;
- GError *error = NULL;
manager = g_dbus_object_manager_client_new_for_bus_finish (res, &error);
if (!manager) {
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("Could not create bluez object manager: %s", error->message);
- g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]