Commit 30c227eb authored by DonLakeFlyer's avatar DonLakeFlyer

Fix ADSB crash

parent c72b9e2e
......@@ -44,6 +44,7 @@ void ADSBVehicleManager::_cleanupStaleVehicles()
if (adsbVehicle->expired()) {
qCDebug(ADSBVehicleManagerLog) << "Expired" << QStringLiteral("%1").arg(adsbVehicle->icaoAddress(), 0, 16);
_adsbVehicles.removeAt(i);
_adsbICAOMap.remove(adsbVehicle->icaoAddress());
adsbVehicle->deleteLater();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment