diff options
author | Max Horn | 2009-09-25 13:01:50 +0000 |
---|---|---|
committer | Max Horn | 2009-09-25 13:01:50 +0000 |
commit | 78d2ea9fcf863db4ba5f7bf92a7a4fecc4da6fc2 (patch) | |
tree | 5fb924541b59d8bd0a0bdd59492fde8c0355fab4 /engines/sci | |
parent | 4221773f6a5f470cdd1df5b9224c442a458f5047 (diff) | |
download | scummvm-rg350-78d2ea9fcf863db4ba5f7bf92a7a4fecc4da6fc2.tar.gz scummvm-rg350-78d2ea9fcf863db4ba5f7bf92a7a4fecc4da6fc2.tar.bz2 scummvm-rg350-78d2ea9fcf863db4ba5f7bf92a7a4fecc4da6fc2.zip |
SCI: Fix a memory leak
svn-id: r44357
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kmenu.cpp b/engines/sci/engine/kmenu.cpp index a8c62bfb45..c57006c3a9 100644 --- a/engines/sci/engine/kmenu.cpp +++ b/engines/sci/engine/kmenu.cpp @@ -78,7 +78,7 @@ reg_t kDrawStatus(EngineState *s, int, int argc, reg_t *argv) { s->status_bar_background = bgcolor; if (text.segment) { - const char *tmp = strdup(s->segMan->derefString(text)); + const char *tmp = s->segMan->derefString(text); s->_statusBarText = tmp ? tmp : ""; } |