1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-19 22:35:10 +03:00

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

View file

@ -81,3 +81,9 @@ SimulatorFactory *getSimulatorFactory(const QString &name)
return NULL;
}
void unregisterSimulators()
{
foreach(SimulatorFactory *factory, registered_simulators) {
delete factory;
}
}