diff --git a/hch/CLodHandler.cpp b/hch/CLodHandler.cpp index 094a7f48c..f189ddbe9 100644 --- a/hch/CLodHandler.cpp +++ b/hch/CLodHandler.cpp @@ -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; }