mirror of https://github.com/odrling/Aegisub
Fixed a memory leak that occurred from canceling loading of audio with cache type set to RAM
Originally committed to SVN as r3073.
This commit is contained in:
parent
1a85b179dc
commit
e0ac4c7490
|
@ -101,7 +101,10 @@ RAMAudioProvider::RAMAudioProvider(AudioProvider *source) {
|
||||||
|
|
||||||
// Clean up progress
|
// Clean up progress
|
||||||
if (!canceled) progress->Destroy();
|
if (!canceled) progress->Destroy();
|
||||||
else throw wxString(_T("Audio loading cancelled by user"));
|
else {
|
||||||
|
Clear();
|
||||||
|
throw wxString(_T("Audio loading cancelled by user"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue