Fix memory leak in audiostream (I think)

svn-id: r29940
This commit is contained in:
Neil Millstone 2007-12-21 18:28:59 +00:00
parent 1ecbde083f
commit df33fdd79e

View File

@ -142,7 +142,7 @@ public:
_origPtr = autoFreeMemory ? ptr : 0;
}
~LinearMemoryStream() {
virtual ~LinearMemoryStream() {
free(const_cast<byte *>(_origPtr));
}
int readBuffer(int16 *buffer, const int numSamples);