Simulators and firmwares unregistered when application ends (fixes memory leaks)

This commit is contained in:
Damjan Adamic
2015-10-24 20:10:17 +02:00
parent ee4ea18a3e
commit 2a54bee20b
8 changed files with 20 additions and 9 deletions
-7
View File
@@ -1642,13 +1642,6 @@ QList<Firmware *> firmwares;
Firmware * default_firmware_variant;
Firmware * current_firmware_variant;
void unregisterFirmwares()
{
foreach (Firmware * f, firmwares) {
delete f;
}
}
void ShowEepromErrors(QWidget *parent, const QString &title, const QString &mainMessage, unsigned long errorsFound)
{
std::bitset<NUM_ERRORS> errors((unsigned long long)errorsFound);