Browse Source

Make sure UAS is deleted on correct thread

QGC4.4
Don Gagne 11 years ago
parent
commit
f9dc3c0a41
  1. 3
      src/uas/UASManager.cc

3
src/uas/UASManager.cc

@ -279,7 +279,8 @@ UASManager::~UASManager()
storeSettings(); storeSettings();
// Delete all systems // Delete all systems
foreach (UASInterface* mav, systems) { foreach (UASInterface* mav, systems) {
delete mav; // deleteLater so it ends up on correct thread
mav->deleteLater();
} }
} }

Loading…
Cancel
Save