mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Fixing memory leak on update UPower tooltip
This commit is contained in:
@ -29,7 +29,7 @@ UPowerTooltip::~UPowerTooltip() {}
|
||||
uint UPowerTooltip::updateTooltip(Devices& devices) {
|
||||
// Removes all old devices
|
||||
for (auto child : contentBox->get_children()) {
|
||||
child->~Widget();
|
||||
delete child;
|
||||
}
|
||||
|
||||
uint deviceCount = 0;
|
||||
|
Reference in New Issue
Block a user