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
0d54078d93
commit
d83b19e57b
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