diff options
| author | JosJuice <josjuice@gmail.com> | 2021-03-07 13:52:54 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2021-03-07 13:56:06 +0100 |
| commit | 96ebf01ea86a0375beedc7b8a74e2f314653278b (patch) | |
| tree | b50b00d493e53be4c9bf15029773ffc48ee76578 /Source/Core/DiscIO/VolumeVerifier.cpp | |
| parent | de30559862fb9c283786226a34118ba340757cea (diff) | |
VolumeVerifier: Fix potential crash when cancelling
The async operations may contain references to class members, so
any running async operations must end before destroying the class.
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index 21ac8f5d39..15cce81126 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -378,7 +378,10 @@ VolumeVerifier::VolumeVerifier(const Volume& volume, bool redump_verification, m_redump_verification = false; } -VolumeVerifier::~VolumeVerifier() = default; +VolumeVerifier::~VolumeVerifier() +{ + WaitForAsyncOperations(); +} void VolumeVerifier::Start() { |
