aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/vmenu.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/vmenu.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/vmenu.cpp')
-rw-r--r--engines/cge/vmenu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cge/vmenu.cpp b/engines/cge/vmenu.cpp
index 8fef6307b1..f802916657 100644
--- a/engines/cge/vmenu.cpp
+++ b/engines/cge/vmenu.cpp
@@ -59,8 +59,12 @@ MenuBar::MenuBar(CGEEngine *vm, uint16 w) : Talk(vm), _vm(vm) {
p1 += w;
p2 -= w;
}
+
+ _ts = new BMP_PTR[2];
_ts[0] = new Bitmap(w, h, p);
+ _ts[1] = NULL;
setShapeList(_ts);
+
_flags._slav = true;
_flags._tran = true;
_flags._kill = true;