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:
parent
16bf0e454f
commit
f480bed06d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue