mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-21 06:13:49 +00:00
Fix double-free of MQTT connection on shutdown
This commit is contained in:
parent
49efab54ba
commit
8ab1c41846
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