diff options
author | Colin Snover | 2017-01-05 22:44:33 -0600 |
---|---|---|
committer | Colin Snover | 2017-01-09 19:34:54 -0600 |
commit | 8cce4f1b8c175a52a035e01318a797d4797ecd85 (patch) | |
tree | 21ee62e82bdd02308b2bd0ccd8ca8cda18541da7 /engines/sci/engine/kstring.cpp | |
parent | 7567940ba14ef7d2277dea73161383c8d65e9ee6 (diff) | |
download | scummvm-rg350-8cce4f1b8c175a52a035e01318a797d4797ecd85.tar.gz scummvm-rg350-8cce4f1b8c175a52a035e01318a797d4797ecd85.tar.bz2 scummvm-rg350-8cce4f1b8c175a52a035e01318a797d4797ecd85.zip |
SCI32: Ignore attempts to free null array reg_ts
Diffstat (limited to 'engines/sci/engine/kstring.cpp')
-rw-r--r-- | engines/sci/engine/kstring.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp index ab1f0210e7..ae91ef088a 100644 --- a/engines/sci/engine/kstring.cpp +++ b/engines/sci/engine/kstring.cpp @@ -663,9 +663,7 @@ reg_t kStringGetChar(EngineState *s, int argc, reg_t *argv) { } reg_t kStringFree(EngineState *s, int argc, reg_t *argv) { - if (!argv[0].isNull()) { - s->_segMan->freeArray(argv[0]); - } + s->_segMan->freeArray(argv[0]); return s->r_acc; } |