Skip to content

Commit

Permalink
webui: make sure the pointer data is set to null, otherwise the webse…
Browse files Browse the repository at this point in the history
…rver will try to free() it
  • Loading branch information
mcspr committed Jul 18, 2021
1 parent 6b2c34e commit 256e790
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/espurna/ws.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ void _wsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventTy
DEBUG_MSG_P(PSTR("[WEBSOCKET] #%u disconnected\n"), client->id());
if (client->_tempObject) {
delete (WebSocketIncommingBuffer *) client->_tempObject;
client->_tempObject = nullptr;
}
wifiApCheck();

Expand Down

0 comments on commit 256e790

Please sign in to comment.