diff options
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/vm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 1182d79460..b922bee8e8 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -2044,7 +2044,7 @@ static EngineState *_game_run(EngineState *s, int restoring) { if (successor) { game_exit(s); script_free_vm_memory(s); - free(s); + delete s; s = successor; if (!send_calls_allocated) { |