mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
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:
@@ -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