From 0ac813c00331b574a4774308859d6f34f737ae4e Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sat, 30 Apr 2011 13:56:18 -0700 Subject: [PATCH] Fix a memleak pointed out by Zrax. --- Sources/Plasma/PubUtilLib/plAudioCore/plAudioFileReader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Plasma/PubUtilLib/plAudioCore/plAudioFileReader.cpp b/Sources/Plasma/PubUtilLib/plAudioCore/plAudioFileReader.cpp index 59aedcc1..cafa6797 100644 --- a/Sources/Plasma/PubUtilLib/plAudioCore/plAudioFileReader.cpp +++ b/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); }