Unref all devices on destruct
parent
14a2a7027f
commit
4196e0d5d1
|
@ -62,6 +62,7 @@ UPower::~UPower() {
|
||||||
g_dbus_connection_signal_unsubscribe(login1_connection, login1_id);
|
g_dbus_connection_signal_unsubscribe(login1_connection, login1_id);
|
||||||
login1_id = 0;
|
login1_id = 0;
|
||||||
}
|
}
|
||||||
|
removeDevices();
|
||||||
}
|
}
|
||||||
|
|
||||||
void UPower::deviceAdded_cb(UpClient* client, UpDevice* device, gpointer data) {
|
void UPower::deviceAdded_cb(UpClient* client, UpDevice* device, gpointer data) {
|
||||||
|
|
Loading…
Reference in New Issue