Browse Source

Fix a memleak pointed out by Zrax.

Darryl Pogue 14 years ago
parent
commit
0ac813c003
  1. 1
      Sources/Plasma/PubUtilLib/plAudioCore/plAudioFileReader.cpp

1
Sources/Plasma/PubUtilLib/plAudioCore/plAudioFileReader.cpp

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

Loading…
Cancel
Save