forked from mia/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
1 changed files with 4 additions and 1 deletions
|
@ -101,7 +101,10 @@ RAMAudioProvider::RAMAudioProvider(AudioProvider *source) {
|
|||
|
||||
// Clean up progress
|
||||
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 a new issue