Browse Source

Fix vehicle shutdown crash

QGC4.4
DonLakeFlyer 7 years ago
parent
commit
bc829486ea
  1. 2
      src/comm/LinkInterface.cc

2
src/comm/LinkInterface.cc

@ -204,7 +204,7 @@ void LinkInterface::stopHeartbeatTimer() { @@ -204,7 +204,7 @@ void LinkInterface::stopHeartbeatTimer() {
while (iter.hasNext()) {
iter.next();
QObject::disconnect(iter.value(), &HeartbeatTimer::activeChanged, this, &LinkInterface::_activeChanged);
delete _heartbeatTimers[iter.key()];
_heartbeatTimers[iter.key()]->deleteLater();
_heartbeatTimers[iter.key()] = nullptr;
}

Loading…
Cancel
Save