You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTPConnection2 have some memory leaks. After adding request it must be processed and then user have to get response, otherwise it will leak (for example user quit game before response is received or processed).
Example solution:
HTTPConnection2::~HTTPConnection2()
{
for(unsigned int i = 0, count = pendingRequests.Size(); i < count; ++i)
SLNet::OP_DELETE(pendingRequests[i], _FILE_AND_LINE_);
for(unsigned int i = 0, count = sentRequests.Size(); i < count; ++i)
SLNet::OP_DELETE(sentRequests[i], _FILE_AND_LINE_);
for(unsigned int i = 0, count = completedRequests.Size(); i < count; ++i)
SLNet::OP_DELETE(completedRequests[i], _FILE_AND_LINE_);
}
Hi Tomash, thanks for the report and the suggested fix. I've applied a variant of the suggested code change to the current trunk/master and the fix should be integrated in the next version of SLikeNet.
Internal issue number: SLNET-259.
Do you want to be listed in the acknowledgment section of the accompanied readme file as well for your contribution?
HTTPConnection2 have some memory leaks. After adding request it must be processed and then user have to get response, otherwise it will leak (for example user quit game before response is received or processed).
Example solution:
I hereby declare I've read and agree to the current CLA as provided under https://github.com/SLikeSoft/SLikeNet/blob/master/.github/CONTRIBUTING.md
The text was updated successfully, but these errors were encountered: