Re-added the memory leak fix

This commit is contained in:
Gunnar Skjold 2025-11-27 13:25:44 +01:00
parent a112ab5a65
commit b3eefa1bb1

View File

@ -38,6 +38,13 @@ public:
subTopic = String(mqttConfig.subscribeTopic);
if(subTopic.isEmpty()) subTopic = pubTopic+"/command";
};
~AmsMqttHandler() {
if(mqttSecureClient != NULL) {
delete mqttSecureClient;
mqttSecureClient = NULL;
}
};
void setCaVerification(bool);
void setConfig(MqttConfig& mqttConfig);