diff --git a/engines/grim/textsplit.cpp b/engines/grim/textsplit.cpp index 68973c6ca91..42d6cb91997 100644 --- a/engines/grim/textsplit.cpp +++ b/engines/grim/textsplit.cpp @@ -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);