diff options
author | Eugene Sandulenko | 2015-12-23 23:26:09 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-27 15:41:00 +0100 |
commit | 870d6748fed63733a5a4f35b7e4485fb9cfcf56b (patch) | |
tree | 3534c9a1501f0836bb7a3c47c007e7ec22f21c1e | |
parent | 5478cbe9c8f9f119d621b91d3fe01f62691bde57 (diff) | |
download | scummvm-rg350-870d6748fed63733a5a4f35b7e4485fb9cfcf56b.tar.gz scummvm-rg350-870d6748fed63733a5a4f35b7e4485fb9cfcf56b.tar.bz2 scummvm-rg350-870d6748fed63733a5a4f35b7e4485fb9cfcf56b.zip |
WAGE: Fix crash on double free()
-rw-r--r-- | engines/wage/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index ae31d636ba..cb0710965e 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -690,7 +690,7 @@ bool Script::eval(Operand *lhs, const char *op, Operand *rhs) { Script::Operand *Script::convertOperand(Operand *operand, int type) { if (operand->_type == type) - return operand; + return new Operand(*operand); if (type == SCENE) { if (operand->_type == STRING || operand->_type == NUMBER) { |