mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
GRIM: Fix alloc-dealloc mismatch in grim engine
A previous fix in ResidualVM changed 2 calls to free() into delete operators because scumm_strdup() was using the new operator. Later scumm_strdup() switched to malloc() to be aligned with strdup() function. So move back to free().
This commit is contained in:
parent
606eeae46f
commit
10b88aae66
@ -235,8 +235,8 @@ static void parse(const char *line, const char *fmt, int field_count, va_list va
|
||||
break;
|
||||
}
|
||||
}
|
||||
delete[] str;
|
||||
delete[] format;
|
||||
free(str);
|
||||
free(format);
|
||||
|
||||
if (count < field_count) {
|
||||
error("Expected line of format '%s', got '%s'", fmt, line);
|
||||
|
Loading…
x
Reference in New Issue
Block a user