mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
improvements for compressing and decompressing
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@574 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -309,7 +309,6 @@ bool DecompressBlobToFile(const char* infile, const char* outfile, CompressCB ca
|
||||
fwrite(buffer, header.block_size, 1, f);
|
||||
}
|
||||
|
||||
delete reader;
|
||||
delete[] buffer;
|
||||
|
||||
#ifdef _WIN32
|
||||
@ -320,6 +319,9 @@ bool DecompressBlobToFile(const char* infile, const char* outfile, CompressCB ca
|
||||
ftruncate(fileno(f), header.data_size);
|
||||
#endif
|
||||
fclose(f);
|
||||
|
||||
delete reader;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user