issue #2271: fixed memory leak of WebSocket

This commit is contained in:
minggo 2013-06-09 14:50:51 +08:00
parent c4ab295846
commit 1a0789cd11
1 changed files with 2 additions and 0 deletions

View File

@ -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();