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:
@@ -110,9 +110,9 @@ unsigned char * CLodHandler::giveFile(std::string defName, int * length)
|
|||||||
|
|
||||||
LOD.seekg(ourEntry->offset, std::ios::beg);
|
LOD.seekg(ourEntry->offset, std::ios::beg);
|
||||||
LOD.read((char*)outp, ourEntry->size);
|
LOD.read((char*)outp, ourEntry->size);
|
||||||
mutex->unlock();
|
|
||||||
unsigned char * decomp = NULL;
|
unsigned char * decomp = NULL;
|
||||||
infs2(outp, ourEntry->size, ourEntry->realSize, decomp);
|
infs2(outp, ourEntry->size, ourEntry->realSize, decomp);
|
||||||
|
mutex->unlock();
|
||||||
delete[] outp;
|
delete[] outp;
|
||||||
return decomp;
|
return decomp;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user