pcsx2:gzip: free the index

Normally index will be NULL if len is 0 but it won't hurt
This commit is contained in:
Gregory Hainaut 2015-09-10 13:41:22 +02:00
parent 8b2de15096
commit 5c933a7faf
1 changed files with 1 additions and 0 deletions

View File

@ -316,6 +316,7 @@ bool GzippedFileReader::OkIndex() {
WriteIndexToFile((Access*)m_pIndex, indexfile);
} else {
Console.Error(L"ERROR (%d): index could not be generated for file '%s'", len, WX_STR(m_filename));
free_index(index);
InitZstates();
return false;
}