mirror of https://github.com/PCSX2/pcsx2.git
pcsx2:gzip: free the index
Normally index will be NULL if len is 0 but it won't hurt
This commit is contained in:
parent
8b2de15096
commit
5c933a7faf
|
@ -316,6 +316,7 @@ bool GzippedFileReader::OkIndex() {
|
||||||
WriteIndexToFile((Access*)m_pIndex, indexfile);
|
WriteIndexToFile((Access*)m_pIndex, indexfile);
|
||||||
} else {
|
} else {
|
||||||
Console.Error(L"ERROR (%d): index could not be generated for file '%s'", len, WX_STR(m_filename));
|
Console.Error(L"ERROR (%d): index could not be generated for file '%s'", len, WX_STR(m_filename));
|
||||||
|
free_index(index);
|
||||||
InitZstates();
|
InitZstates();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue