tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.45k stars 1.94k forks source link

using unique_ptr to solve the crash issue. #1635

Open zenz opened 12 months ago

zenz commented 12 months ago

on ESP8266, while using delete[] _value; _value = new char[.....] will cause a crash with init WiFiManagerParameter. so try to use unique_ptr.reset to solve the issue. unique_ptr variable should be auto release during the destructor.