mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00: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:
parent
8ce6b5aceb
commit
0ba37abfdb
2 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue