From 9784c2dac1d42a8582647e8e1877f20f405a9633 Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Tue, 24 Feb 2009 22:25:39 +0000 Subject: Fix a valgrind warning (free -> delete) svn-id: r38864 --- engines/sci/engine/vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3