From df33fdd79ed64def3409be869a845dcf069c8d0b Mon Sep 17 00:00:00 2001 From: Neil Millstone Date: Fri, 21 Dec 2007 18:28:59 +0000 Subject: Fix memory leak in audiostream (I think) svn-id: r29940 --- sound/audiostream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound') diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 2832b72394..771baf351a 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -142,7 +142,7 @@ public: _origPtr = autoFreeMemory ? ptr : 0; } - ~LinearMemoryStream() { + virtual ~LinearMemoryStream() { free(const_cast(_origPtr)); } int readBuffer(int16 *buffer, const int numSamples); -- cgit v1.2.3