Browse Source

Memory Leak behoben

Kolja Strohm 5 years ago
parent
commit
7ee7a5f361
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Network/WebSocket.cpp

+ 1 - 0
Network/WebSocket.cpp

@@ -268,6 +268,7 @@ __declspec( dllexport ) void WebSocketClient::thread()
             else if( callback )
             {
                 callback( this, m.dataLength, m.data, m.opcode == 1 ? TEXT : BINARY );
+                delete[] m.data;
             }
         }
         else