Fixing memory leak on update UPower tooltip

This commit is contained in:
Bryan Waite
2023-02-08 17:19:51 +11:00
parent 48312f4c91
commit 67ab269706
2 changed files with 7 additions and 1 deletions

View File

@ -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;