mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Unref all devices on destruct
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user