aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Ulmer2002-05-01 12:01:43 +0000
committerLionel Ulmer2002-05-01 12:01:43 +0000
commit786f9914c92087365c2256c65a61602bb02068d6 (patch)
tree63840734c0a97aa39c454223f57a3a8d293250f3
parentd1ba5f354f01f97ebb9d7302be3a15c75da92eeb (diff)
downloadscummvm-rg350-786f9914c92087365c2256c65a61602bb02068d6.tar.gz
scummvm-rg350-786f9914c92087365c2256c65a61602bb02068d6.tar.bz2
scummvm-rg350-786f9914c92087365c2256c65a61602bb02068d6.zip
Initialize the private frame buffer at '0' to prevent a lot of
Valgrind errors in the first Smush movie of TheDig. svn-id: r4158
-rw-r--r--scummvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scummvm.cpp b/scummvm.cpp
index 1a90ce1b0d..066eedb855 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -1280,7 +1280,7 @@ void Scumm::launch()
_minHeapThreshold = 400000;
/* Create a primary virtual screen */
- _videoBuffer = (byte*)malloc(328*200);
+ _videoBuffer = (byte*)calloc(328*200, 1);
allocResTypeData(rtBuffer, MKID('NONE'), 10, "buffer", 0);
initVirtScreen(0, 0, 0, 320, 200, false, false);