DEVTOOLS: Fix Missing Delete call in KYRA datfile creation tool.

This is part of the fix for bug Trac #10655.
This commit is contained in:
D G Turner 2018-10-06 13:54:10 +01:00
parent 16bf0e454f
commit f480bed06d

View File

@ -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);