mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix a memleak pointed out by Zrax.
This commit is contained in:
@ -78,6 +78,7 @@ plAudioFileReader* plAudioFileReader::CreateReader(const char* path, plAudioCore
|
||||
if (!r->IsValid()) {
|
||||
// So we tried to play a cached file and it didn't exist
|
||||
// Oops... we should cache it now
|
||||
delete r;
|
||||
ICacheFile(path, true, whichChan);
|
||||
r = TRACKED_NEW plCachedFileReader(cachedPath, plAudioCore::kAll);
|
||||
}
|
||||
|
Reference in New Issue
Block a user