mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00: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:
parent
ed7894924c
commit
0f64df3e3e
4 changed files with 39 additions and 41 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue