mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #67354 from Faless/ws/fix_double_free
[WebSocket] Fix potential double free after multiplayer clear.
This commit is contained in:
commit
027df41244
@ -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