2
3
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:
Darryl Pogue
2011-04-30 13:56:18 -07:00
parent b8e6bb90f3
commit 0ac813c003

View File

@ -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);
}