mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
[WebSocket] Fix potential double free after multiplayer clear.
This commit is contained in:
parent
2c13919e28
commit
0fe01b6b4a
@ -61,6 +61,7 @@ void WebSocketMultiplayerPeer::_clear() {
|
||||
tls_key.unref();
|
||||
if (current_packet.data != nullptr) {
|
||||
memfree(current_packet.data);
|
||||
current_packet.data = nullptr;
|
||||
}
|
||||
|
||||
for (Packet &E : incoming_packets) {
|
||||
|
Loading…
Reference in New Issue
Block a user