From 6b1539d551ea2af68c0e09d13e1af9b0b8c50f9c Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Thu, 11 Jun 2020 16:04:21 +0900 Subject: [PATCH] Fixed an exception with end --- src/AutoConnect.cpp | 1 - src/AutoConnect.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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);