diff options
author | Jordi Vilalta Prat | 2009-02-24 22:25:39 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2009-02-24 22:25:39 +0000 |
commit | 9784c2dac1d42a8582647e8e1877f20f405a9633 (patch) | |
tree | cc6c31ffa3b35673cad468a1253d86587d45c8d7 | |
parent | c2c02ceffd03881ebecacc309d5a83988d2565ea (diff) | |
download | scummvm-rg350-9784c2dac1d42a8582647e8e1877f20f405a9633.tar.gz scummvm-rg350-9784c2dac1d42a8582647e8e1877f20f405a9633.tar.bz2 scummvm-rg350-9784c2dac1d42a8582647e8e1877f20f405a9633.zip |
Fix a valgrind warning (free -> delete)
svn-id: r38864
-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) { |