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:
parent
ee4ea18a3e
commit
2a54bee20b
8 changed files with 20 additions and 9 deletions
|
@ -81,3 +81,9 @@ SimulatorFactory *getSimulatorFactory(const QString &name)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void unregisterSimulators()
|
||||
{
|
||||
foreach(SimulatorFactory *factory, registered_simulators) {
|
||||
delete factory;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue