mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 00:05:34 +01:00
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.
This commit is contained in:
parent
de30559862
commit
96ebf01ea8
@ -378,7 +378,10 @@ VolumeVerifier::VolumeVerifier(const Volume& volume, bool redump_verification,
|
|||||||
m_redump_verification = false;
|
m_redump_verification = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
VolumeVerifier::~VolumeVerifier() = default;
|
VolumeVerifier::~VolumeVerifier()
|
||||||
|
{
|
||||||
|
WaitForAsyncOperations();
|
||||||
|
}
|
||||||
|
|
||||||
void VolumeVerifier::Start()
|
void VolumeVerifier::Start()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user