[Scummvm-cvs-logs] SF.net SVN: scummvm:[54224] scummvm/trunk/engines/toon/audio.cpp
sylvaintv at users.sourceforge.net
sylvaintv at users.sourceforge.net
Sat Nov 13 03:59:47 CET 2010
Revision: 54224
http://scummvm.svn.sourceforge.net/scummvm/?rev=54224&view=rev
Author: sylvaintv
Date: 2010-11-13 02:59:46 +0000 (Sat, 13 Nov 2010)
Log Message:
-----------
TOON: Fix free/malloc mismatch
Modified Paths:
--------------
scummvm/trunk/engines/toon/audio.cpp
Modified: scummvm/trunk/engines/toon/audio.cpp
===================================================================
--- scummvm/trunk/engines/toon/audio.cpp 2010-11-13 02:44:34 UTC (rev 54223)
+++ scummvm/trunk/engines/toon/audio.cpp 2010-11-13 02:59:46 UTC (rev 54224)
@@ -530,7 +530,7 @@
int32 size = 0;
getInfo(id, &offset, &size);
if (ownMemory) {
- byte *memory = new byte[size];
+ byte *memory = (byte*)malloc(size);
_file->seek(offset);
_file->read(memory, size);
return new Common::MemoryReadStream(memory, size, DisposeAfterUse::YES);
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