DiscIO: Don't keep volume pointer in DiscScrubber
Keeping the pointer creates use-after-free opportunities, and we don't have much reason to keep it around anyway.
This commit is contained in:
1 parent
ed7894924c
commit
0f64df3e3e
4 files changed
+39
-41
No files matched your search
@@ -1059,7 +1059,7 @@ void VolumeVerifier::SetUpHashing()
|
||||
else if (m_volume.GetVolumeType() == Platform::WiiDisc)
|
||||
{
|
||||
// Set up a DiscScrubber for checking whether blocks with errors are unused
|
||||
m_scrubber.SetupScrub(&m_volume);
|
||||
m_scrubber.SetupScrub(m_volume);
|
||||
}
|
||||
|
||||
std::sort(m_groups.begin(), m_groups.end(),
|
||||
|
||||
Reference in new issue
Block a user