summaryrefslogtreecommitdiff
path: root/src/freebsd
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2022-05-10 19:10:02 +0200
committerBenjamin Berg <bberg@redhat.com>2022-05-10 19:19:08 +0200
commitb78a2ab980ca8b84188ac161787bb5359a1c3f96 (patch)
tree9ed818d23428ea3f0402a55e2735c5079da0647e /src/freebsd
parent4651088391fd24a8a21e4e65a80615eb218575ef (diff)
downloadupower-b78a2ab980ca8b84188ac161787bb5359a1c3f96.tar.gz
daemon: Stop passing UpDevice reference to the daemon
There is no need to do so, in particular as the signal emission code will keep a reference to the object internally.
Diffstat (limited to 'src/freebsd')
-rw-r--r--src/freebsd/up-backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freebsd/up-backend.c b/src/freebsd/up-backend.c
index f4acdd2..00bd7db 100644
--- a/src/freebsd/up-backend.c
+++ b/src/freebsd/up-backend.c
@@ -155,7 +155,7 @@ out:
static void
up_backend_create_new_device (UpBackend *backend, UpAcpiNative *native)
{
- UpDevice *device;
+ g_autoptr(UpDevice) device = NULL;
device = g_initable_new (UP_TYPE_DEVICE_SUPPLY, NULL, NULL,
"daemon", backend->priv->daemon,