aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorGregory Montoir2004-12-15 20:25:50 +0000
committerGregory Montoir2004-12-15 20:25:50 +0000
commitc878e6cc4dedaf1ef5fc7a082ad245fcada93059 (patch)
treef7ee49f1c9e634f3d5ac2d53801f18ede8dd3ebb /simon
parenteae8e5cbc753b858e514be345b382cc606806dac (diff)
downloadscummvm-rg350-c878e6cc4dedaf1ef5fc7a082ad245fcada93059.tar.gz
scummvm-rg350-c878e6cc4dedaf1ef5fc7a082ad245fcada93059.tar.bz2
scummvm-rg350-c878e6cc4dedaf1ef5fc7a082ad245fcada93059.zip
memory leak
svn-id: r16063
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 96c3f96a7c..bb455aae93 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4450,6 +4450,7 @@ byte *SimonEngine::read_vga_from_datfile_2(uint id) {
error("read_vga_from_datfile_2: read failed");
dst = setup_vga_destination (READ_BE_UINT32(buffer + size - 4) + extraBuffer);
decrunch_file_amiga (buffer, dst, size);
+ delete[] buffer;
} else {
dst = setup_vga_destination(size + extraBuffer);
if (in.read(dst, size) != size)