diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 2832b723946..771baf351a8 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);