summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeVerifier.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-08-19 17:14:35 +0200
committerJosJuice <josjuice@gmail.com>2023-08-19 17:30:22 +0200
commit0f64df3e3e17e5dfc91a7fb99f3de641b1c33ae5 (patch)
tree62a61ba3632b1fcec68d81ea5d291a166420453e /Source/Core/DiscIO/VolumeVerifier.cpp
parented7894924c79be09863ade3aa4622423dd434691 (diff)
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.
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index 66e7d00dc4..efbe129a5f 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -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(),