1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fixed few more memory leaks in client

This commit is contained in:
Ivan Savenko
2023-11-13 13:43:46 +02:00
parent 20ef3a69e7
commit a6f37b7cd7
6 changed files with 11 additions and 12 deletions

View File

@ -269,13 +269,7 @@ CPack * CConnection::retrievePack()
iser & pack;
logNetwork->trace("Received CPack of type %s", (pack ? typeid(*pack).name() : "nullptr"));
if(pack == nullptr)
{
logNetwork->error("Received a nullptr CPack! You should check whether client and server ABI matches.");
}
else
{
pack->c = this->shared_from_this();
}
enableBufferedRead = false;