From 4196e0d5d1d7c12251ca1429e2f9f1fd91974679 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Sat, 19 Mar 2022 11:35:13 +0100 Subject: [PATCH] Unref all devices on destruct --- src/modules/upower/upower.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/upower/upower.cpp b/src/modules/upower/upower.cpp index a4f6200..1573796 100644 --- a/src/modules/upower/upower.cpp +++ b/src/modules/upower/upower.cpp @@ -62,6 +62,7 @@ UPower::~UPower() { g_dbus_connection_signal_unsubscribe(login1_connection, login1_id); login1_id = 0; } + removeDevices(); } void UPower::deviceAdded_cb(UpClient* client, UpDevice* device, gpointer data) {