aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-23 20:33:22 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit0aff016ad9633ee38b74a91d73743267456977c9 (patch)
tree06c95c4e3d38c7ef87203ae342f7e2739c2a9a0d /engines/glk/frotz
parentf92b82664dd099ac4d4439f614188a6544bfff2c (diff)
downloadscummvm-rg350-0aff016ad9633ee38b74a91d73743267456977c9.tar.gz
scummvm-rg350-0aff016ad9633ee38b74a91d73743267456977c9.tar.bz2
scummvm-rg350-0aff016ad9633ee38b74a91d73743267456977c9.zip
GLK: FROTZ: Fix deletion of undo_mem
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r--engines/glk/frotz/mem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/frotz/mem.cpp b/engines/glk/frotz/mem.cpp
index bec30b00f7..656b822ee6 100644
--- a/engines/glk/frotz/mem.cpp
+++ b/engines/glk/frotz/mem.cpp
@@ -231,7 +231,7 @@ void Mem::reset_memory() {
if (undo_mem) {
free_undo(undo_count);
- delete undo_mem;
+ delete[] undo_mem;
}
undo_mem = nullptr;