1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Is zlib thread-safe...?

This commit is contained in:
Michał W. Urbańczyk
2010-11-05 17:29:10 +00:00
parent 8ad159af53
commit e717f2fd05

View File

@@ -110,9 +110,9 @@ unsigned char * CLodHandler::giveFile(std::string defName, int * length)
LOD.seekg(ourEntry->offset, std::ios::beg);
LOD.read((char*)outp, ourEntry->size);
mutex->unlock();
unsigned char * decomp = NULL;
infs2(outp, ourEntry->size, ourEntry->realSize, decomp);
mutex->unlock();
delete[] outp;
return decomp;
}