diff options
Diffstat (limited to 'engines/sludge/builtin.cpp')
| -rw-r--r-- | engines/sludge/builtin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index b15ed01b70..131a90351e 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -180,7 +180,7 @@ static builtReturn sayCore(int numParams, loadedFunction *fun, bool sayIt) { fun->timeLeft = p; //debugOut ("BUILTIN: sayCore: %s (%i)\n", newText, p); fun->isSpeech = true; - delete newText; + delete[] newText; newText = NULL; return BR_KEEP_AND_PAUSE; } @@ -887,7 +887,7 @@ builtIn(setFont) { if (!loadFont(fileNumber, newText, newHeight)) return BR_ERROR; // newDebug (" Done!"); - delete newText; + delete[] newText; return BR_CONTINUE; } @@ -1862,7 +1862,7 @@ builtIn(statusText) { return BR_ERROR; trimStack(fun->stack); setStatusBar(newText); - delete newText; + delete[] newText; return BR_CONTINUE; } |
