aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/cge_main.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-07-10 14:51:22 +1000
committerPaul Gilbert2011-07-10 14:51:22 +1000
commit1870f09d3131ea6b9e2646343e5191cda614b49b (patch)
tree3d76e2b5836b8cfc263553d5db834978727e26b6 /engines/cge/cge_main.cpp
parentef83c248d386ec75b4e3ddf3d1178e82a38b6b76 (diff)
downloadscummvm-rg350-1870f09d3131ea6b9e2646343e5191cda614b49b.tar.gz
scummvm-rg350-1870f09d3131ea6b9e2646343e5191cda614b49b.tar.bz2
scummvm-rg350-1870f09d3131ea6b9e2646343e5191cda614b49b.zip
CGE: Fix several allocation mismatches and Valgrind issues
Diffstat (limited to 'engines/cge/cge_main.cpp')
-rw-r--r--engines/cge/cge_main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index c800d242ae..a4d110eac6 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -1715,7 +1715,9 @@ bool CGEEngine::showTitle(const char *name) {
return false;
Bitmap::_pal = Vga::_sysPal;
- BMP_PTR LB[] = { new Bitmap(name, true), NULL };
+ BMP_PTR *LB = new BMP_PTR[2];
+ LB[0] = new Bitmap(name, true);
+ LB[1] = NULL;
Bitmap::_pal = NULL;
bool usr_ok = false;