[Scummvm-cvs-logs] SF.net SVN: scummvm:[47378] scummvm/trunk/engines/sword1/sound.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Jan 19 12:22:54 CET 2010
Revision: 47378
http://scummvm.svn.sourceforge.net/scummvm/?rev=47378&view=rev
Author: fingolfin
Date: 2010-01-19 11:22:54 +0000 (Tue, 19 Jan 2010)
Log Message:
-----------
SWORD1: Fix memory leak in PSX audio code (seems to have been there for quite some time?)
Modified Paths:
--------------
scummvm/trunk/engines/sword1/sound.cpp
Modified: scummvm/trunk/engines/sword1/sound.cpp
===================================================================
--- scummvm/trunk/engines/sword1/sound.cpp 2010-01-19 11:22:14 UTC (rev 47377)
+++ scummvm/trunk/engines/sword1/sound.cpp 2010-01-19 11:22:54 UTC (rev 47378)
@@ -260,7 +260,7 @@
if (SwordEngine::isPsx()) { ;
uint32 size = READ_LE_UINT32(sampleData);
Audio::AudioStream *audStream = Audio::makeLoopingAudioStream(new Audio::VagStream(new Common::MemoryReadStream(sampleData + 4, size-4)), (_fxList[elem->id].type == FX_LOOP) ? 0 : 1);
- _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &elem->handle, audStream, elem->id, volume, pan, DisposeAfterUse::NO);
+ _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &elem->handle, audStream, elem->id, volume, pan);
} else {
uint32 size = READ_LE_UINT32(sampleData + 0x28);
uint8 flags;
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