mirror of https://github.com/axmolengine/axmol.git
issue #2271: fixed memory leak of WebSocket
This commit is contained in:
parent
c4ab295846
commit
1a0789cd11
|
@ -557,6 +557,8 @@ int WebSocket::onSocketCallback(struct libwebsocket_context *ctx,
|
|||
CC_SAFE_DELETE(data);
|
||||
CC_SAFE_DELETE_ARRAY(buf);
|
||||
}
|
||||
|
||||
CC_SAFE_DELETE(subThreadMsg);
|
||||
}
|
||||
|
||||
_wsHelper->_subThreadWsMessageQueue->clear();
|
||||
|
|
Loading…
Reference in New Issue