aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-23 20:51:43 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit5b9e1a53ad4c2baca32dbb3fce22230cc7e8bc40 (patch)
treeebc14c22f80e30f5c54360547e316703d57ad1f6 /engines
parent0aff016ad9633ee38b74a91d73743267456977c9 (diff)
downloadscummvm-rg350-5b9e1a53ad4c2baca32dbb3fce22230cc7e8bc40.tar.gz
scummvm-rg350-5b9e1a53ad4c2baca32dbb3fce22230cc7e8bc40.tar.bz2
scummvm-rg350-5b9e1a53ad4c2baca32dbb3fce22230cc7e8bc40.zip
GLK: FROTZ: Fix mismatch allocation/free
Diffstat (limited to 'engines')
-rw-r--r--engines/glk/frotz/mem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/frotz/mem.cpp b/engines/glk/frotz/mem.cpp
index 656b822ee6..19d2c3da3d 100644
--- a/engines/glk/frotz/mem.cpp
+++ b/engines/glk/frotz/mem.cpp
@@ -88,7 +88,7 @@ void Mem::initializeUndo() {
void Mem::loadGameHeader() {
// Load header
- zmp = new byte[64];
+ zmp = (byte *)malloc(64);
story_fp->seek(0);
story_fp->read(zmp, 64);
@@ -236,7 +236,7 @@ void Mem::reset_memory() {
undo_mem = nullptr;
undo_count = 0;
- delete[] zmp;
+ free(zmp);
zmp = nullptr;
}