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
@@ -81,3 +81,9 @@ SimulatorFactory *getSimulatorFactory(const QString &name)
return NULL;
}
void unregisterSimulators()
{
foreach(SimulatorFactory *factory, registered_simulators) {
delete factory;
}
}