diff options
author | Christopher Page | 2008-05-28 23:28:11 +0000 |
---|---|---|
committer | Christopher Page | 2008-05-28 23:28:11 +0000 |
commit | 203f62ad7cfc3f931c98c8fc3ecdbb01924b896f (patch) | |
tree | 4bd5b4c4d3c0b85e9b5bb702b191f9ba08648670 /engines/lure/menu.cpp | |
parent | 8297ead2671e43963098a3dc41e8e75fdbce4ddc (diff) | |
download | scummvm-rg350-203f62ad7cfc3f931c98c8fc3ecdbb01924b896f.tar.gz scummvm-rg350-203f62ad7cfc3f931c98c8fc3ecdbb01924b896f.tar.bz2 scummvm-rg350-203f62ad7cfc3f931c98c8fc3ecdbb01924b896f.zip |
LURE: Fixed some memory leaks when returning to the launcher from the LURE engine
svn-id: r32357
Diffstat (limited to 'engines/lure/menu.cpp')
-rw-r--r-- | engines/lure/menu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/lure/menu.cpp b/engines/lure/menu.cpp index cecc415499..0b4ef06081 100644 --- a/engines/lure/menu.cpp +++ b/engines/lure/menu.cpp @@ -57,6 +57,11 @@ MenuRecord::MenuRecord(const MenuRecordBounds *bounds, int numParams, ...) { _width = (bounds->contentsWidth + 3) << 3; } +MenuRecord::~MenuRecord() { + free(_entries); + _entries = NULL; +} + const char *MenuRecord::getEntry(uint8 index) { if (index >= _numEntries) error("Invalid menuitem index specified: %d", index); return _entries[index]; |