diff options
author | Paul Gilbert | 2011-07-10 14:51:22 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-07-10 14:51:22 +1000 |
commit | 1870f09d3131ea6b9e2646343e5191cda614b49b (patch) | |
tree | 3d76e2b5836b8cfc263553d5db834978727e26b6 /engines/cge/cge_main.cpp | |
parent | ef83c248d386ec75b4e3ddf3d1178e82a38b6b76 (diff) | |
download | scummvm-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.cpp | 4 |
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; |