[Scummvm-git-logs] scummvm master -> f480bed06db86da15e41c705a9d22e80782c1424
digitall
dgturner at iee.org
Sat Oct 6 14:45:44 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f480bed06d DEVTOOLS: Fix Missing Delete call in KYRA datfile creation tool.
Commit: f480bed06db86da15e41c705a9d22e80782c1424
https://github.com/scummvm/scummvm/commit/f480bed06db86da15e41c705a9d22e80782c1424
Author: D G Turner (digitall at scummvm.org)
Date: 2018-10-06T13:54:10+01:00
Commit Message:
DEVTOOLS: Fix Missing Delete call in KYRA datfile creation tool.
This is part of the fix for bug Trac #10655.
Changed paths:
devtools/create_kyradat/pak.cpp
diff --git a/devtools/create_kyradat/pak.cpp b/devtools/create_kyradat/pak.cpp
index 52e1a2f..78fe418 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);
More information about the Scummvm-git-logs
mailing list