aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorTravis Howell2007-01-01 04:58:25 +0000
committerTravis Howell2007-01-01 04:58:25 +0000
commitafcfc95e8ac5a3f52817128c1a8e359bf46c4e5d (patch)
tree783102109cc1ac2ef5d69fef93a0d102d6fed1cf /graphics
parent9b6c3f3a87d3b7323e520e2a2ef2a44a7d517f88 (diff)
downloadscummvm-rg350-afcfc95e8ac5a3f52817128c1a8e359bf46c4e5d.tar.gz
scummvm-rg350-afcfc95e8ac5a3f52817128c1a8e359bf46c4e5d.tar.bz2
scummvm-rg350-afcfc95e8ac5a3f52817128c1a8e359bf46c4e5d.zip
Always reset _scaledBuffer to zero when playing video, to prevent double free.
svn-id: r24962
Diffstat (limited to 'graphics')
-rw-r--r--graphics/dxa_player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/dxa_player.cpp b/graphics/dxa_player.cpp
index 3c38faf167..9d9ca4bb14 100644
--- a/graphics/dxa_player.cpp
+++ b/graphics/dxa_player.cpp
@@ -126,6 +126,7 @@ bool DXAPlayer::loadFile(const char *filename) {
if (!_frameBuffer1 || !_frameBuffer2)
error("DXAPlayer: Error allocating frame buffers (size %d)", _frameSize);
+ _scaledBuffer = 0;
if (_scaleMode != S_NONE) {
_scaledBuffer = (uint8 *)malloc(_frameSize);
if (!_scaledBuffer)