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:
fires.gc
2008-09-18 08:52:07 +00:00
parent 8ce6b5aceb
commit 0ba37abfdb
2 changed files with 9 additions and 4 deletions

View File

@ -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;
}