Merge pull request #864 from BeigeBox/fix/mqtt-double-free

Fix double-free of MQTT connection on shutdown
This commit is contained in:
Jonathan Naylor 2026-04-05 16:21:09 +01:00 committed by GitHub
commit 80e5c57360
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1473,6 +1473,7 @@ int CMMDVMHost::run()
if (m_mqtt != nullptr) {
m_mqtt->close();
delete m_mqtt;
m_mqtt = nullptr;
}
return 0;