mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 02:30:32 +01:00
GzippedFileReader: Fix freeing potentially-invalid pointer
This commit is contained in:
1 parent
553a5cc455
commit
62fffaf56f
1 file changed
+1
-1
@@ -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...");
|
||||
|
||||
const s64 prevoffset = FileSystem::FTell64(m_src);
|
||||
Access* index;
|
||||
Access* index = nullptr;
|
||||
int len = build_index(m_src, GZFILE_SPAN_DEFAULT, &index);
|
||||
printf("\n"); // build_index prints progress without \n's
|
||||
FileSystem::FSeek64(m_src, prevoffset, SEEK_SET);
|
||||
|
||||
Reference in new issue
Block a user