diff options
author | D G Turner | 2018-10-06 13:54:10 +0100 |
---|---|---|
committer | D G Turner | 2018-10-06 13:54:10 +0100 |
commit | f480bed06db86da15e41c705a9d22e80782c1424 (patch) | |
tree | da205ad75db8e3f9ec7cba16f427e77dcbe97611 | |
parent | 16bf0e454f831765a59cc6ace4d8a855196778c8 (diff) | |
download | scummvm-rg350-f480bed06db86da15e41c705a9d22e80782c1424.tar.gz scummvm-rg350-f480bed06db86da15e41c705a9d22e80782c1424.tar.bz2 scummvm-rg350-f480bed06db86da15e41c705a9d22e80782c1424.zip |
DEVTOOLS: Fix Missing Delete call in KYRA datfile creation tool.
This is part of the fix for bug Trac #10655.
-rw-r--r-- | devtools/create_kyradat/pak.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/devtools/create_kyradat/pak.cpp b/devtools/create_kyradat/pak.cpp index 52e1a2fc3b..78fe418c6b 100644 --- a/devtools/create_kyradat/pak.cpp +++ b/devtools/create_kyradat/pak.cpp @@ -204,6 +204,7 @@ bool PAKFile::addFile(const char *name, const char *file) { assert(data); if (fread(data, 1, filesize, f) != filesize) { error("couldn't read from file '%s'", file); + delete[] data; return false; } fclose(f); |