Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 48fd094

Browse files
committed
added delete dnsServer in destructor
1 parent da025b5 commit 48fd094

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"new": "cpp"
4+
}
5+
}

src/ESPAsync_WiFiManager_Lite.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,11 @@ class ESPAsync_WiFiManager_Lite
545545

546546
~ESPAsync_WiFiManager_Lite()
547547
{
548+
if (dnsServer)
549+
{
550+
delete dnsServer;
551+
}
552+
548553
if (server)
549554
{
550555
delete server;

0 commit comments

Comments
 (0)