[Scummvm-cvs-logs] SF.net SVN: scummvm: [29940] scummvm/trunk/sound/audiostream.cpp
agent-q at users.sourceforge.net
agent-q at users.sourceforge.net
Fri Dec 21 19:28:59 CET 2007
Revision: 29940
http://scummvm.svn.sourceforge.net/scummvm/?rev=29940&view=rev
Author: agent-q
Date: 2007-12-21 10:28:59 -0800 (Fri, 21 Dec 2007)
Log Message:
-----------
Fix memory leak in audiostream (I think)
Modified Paths:
--------------
scummvm/trunk/sound/audiostream.cpp
Modified: scummvm/trunk/sound/audiostream.cpp
===================================================================
--- scummvm/trunk/sound/audiostream.cpp 2007-12-21 09:28:27 UTC (rev 29939)
+++ scummvm/trunk/sound/audiostream.cpp 2007-12-21 18:28:59 UTC (rev 29940)
@@ -142,7 +142,7 @@
_origPtr = autoFreeMemory ? ptr : 0;
}
- ~LinearMemoryStream() {
+ virtual ~LinearMemoryStream() {
free(const_cast<byte *>(_origPtr));
}
int readBuffer(int16 *buffer, const int numSamples);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list