mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 08:40:59 +00:00
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
@ -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…
x
Reference in New Issue
Block a user