mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-21 06:13:49 +00:00
Merge pull request #864 from BeigeBox/fix/mqtt-double-free
Fix double-free of MQTT connection on shutdown
This commit is contained in:
commit
80e5c57360
1 changed files with 1 additions and 0 deletions
|
|
@ -1473,6 +1473,7 @@ int CMMDVMHost::run()
|
|||
if (m_mqtt != nullptr) {
|
||||
m_mqtt->close();
|
||||
delete m_mqtt;
|
||||
m_mqtt = nullptr;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue