aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/video_v6.cpp
diff options
context:
space:
mode:
authorSven Hesse2008-12-14 04:33:28 +0000
committerSven Hesse2008-12-14 04:33:28 +0000
commit5f8323bd50f958803107be6d64fa7dd9a9456bb7 (patch)
tree9cf1b17c0878d0d190cded7191e11eb1b6193068 /engines/gob/video_v6.cpp
parent4d79c4c9b65f89be91867fe5b33a40051b365216 (diff)
downloadscummvm-rg350-5f8323bd50f958803107be6d64fa7dd9a9456bb7.tar.gz
scummvm-rg350-5f8323bd50f958803107be6d64fa7dd9a9456bb7.tar.bz2
scummvm-rg350-5f8323bd50f958803107be6d64fa7dd9a9456bb7.zip
Plugging leaks
svn-id: r35355
Diffstat (limited to 'engines/gob/video_v6.cpp')
-rw-r--r--engines/gob/video_v6.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/gob/video_v6.cpp b/engines/gob/video_v6.cpp
index 76e0259ffd..c32b98d99f 100644
--- a/engines/gob/video_v6.cpp
+++ b/engines/gob/video_v6.cpp
@@ -27,6 +27,7 @@
#include "gob/gob.h"
#include "gob/video.h"
+#include "gob/util.h"
#include "gob/indeo3.h"
namespace Gob {
@@ -40,10 +41,11 @@ void Video_v6::init() {
initOSD();
char text[30];
- for (int i = 0; i < 64; i++) {
+ for (int i = 0; (i < 64) && !_vm->shouldQuit(); i++) {
sprintf(text, "Building palette table: %02d/63", i);
drawOSDText(text);
_palLUT->buildNext();
+ _vm->_util->processInput();
}
}
@@ -153,6 +155,8 @@ void Video_v6::drawYUV(SurfaceDesc *destDesc, int16 x, int16 y,
dither->nextLine();
vidMem += destDesc->getWidth();
}
+
+ delete dither;
}
const byte Video_v6::_ditherPalette[768] = {