From 7e592fd00bcc3d2dffab7a5346d9ca9253956e35 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 28 Apr 2020 09:46:57 +0200 Subject: [PATCH] GLK: ALAN3: Fix malloc/delete[] mismatch --- engines/glk/alan3/output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/glk/alan3/output.cpp b/engines/glk/alan3/output.cpp index 7ebf5a5873a..816474f3b60 100644 --- a/engines/glk/alan3/output.cpp +++ b/engines/glk/alan3/output.cpp @@ -429,7 +429,7 @@ void output(const char *original) { capitalize = strchr("!?.", str[strlen(str) - 1]) != 0; anyOutput = TRUE; - delete[] copy; + free(copy); }