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
@@ -1436,3 +1436,9 @@ void registerOpenTxFirmwares()
current_firmware_variant = default_firmware_variant;
}
void unregisterOpenTxFirmwares()
{
foreach (Firmware * f, firmwares) {
delete f;
}
}