diff --git a/src/AutoConnect.cpp b/src/AutoConnect.cpp index ee0464d..adb76d3 100644 --- a/src/AutoConnect.cpp +++ b/src/AutoConnect.cpp @@ -380,7 +380,6 @@ bool AutoConnect::_getConfigSTA(station_config_t* config) { * Stops AutoConnect captive portal service. */ void AutoConnect::end(void) { - _responsePage.reset(); _currentPageElement.reset(); _ticker.reset(); _update.reset(); diff --git a/src/AutoConnect.h b/src/AutoConnect.h index 1743c27..712a442 100644 --- a/src/AutoConnect.h +++ b/src/AutoConnect.h @@ -220,7 +220,7 @@ class AutoConnect { public: AutoConnect(); AutoConnect(WebServerClass& webServer); - ~AutoConnect(); + virtual ~AutoConnect(); bool begin(void); bool begin(const char* ssid, const char* passphrase = nullptr, unsigned long timeout = AUTOCONNECT_TIMEOUT); bool config(AutoConnectConfig& Config);