mirror of https://github.com/PCSX2/pcsx2.git
GzippedFileReader: Fix freeing potentially-invalid pointer
This commit is contained in:
parent
553a5cc455
commit
62fffaf56f
|
@ -293,7 +293,7 @@ bool GzippedFileReader::OkIndex()
|
||||||
Console.Warning("This may take a while (but only once). Scanning compressed file to generate a quick access index...");
|
Console.Warning("This may take a while (but only once). Scanning compressed file to generate a quick access index...");
|
||||||
|
|
||||||
const s64 prevoffset = FileSystem::FTell64(m_src);
|
const s64 prevoffset = FileSystem::FTell64(m_src);
|
||||||
Access* index;
|
Access* index = nullptr;
|
||||||
int len = build_index(m_src, GZFILE_SPAN_DEFAULT, &index);
|
int len = build_index(m_src, GZFILE_SPAN_DEFAULT, &index);
|
||||||
printf("\n"); // build_index prints progress without \n's
|
printf("\n"); // build_index prints progress without \n's
|
||||||
FileSystem::FSeek64(m_src, prevoffset, SEEK_SET);
|
FileSystem::FSeek64(m_src, prevoffset, SEEK_SET);
|
||||||
|
|
Loading…
Reference in New Issue