aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMax Horn2009-09-25 13:01:50 +0000
committerMax Horn2009-09-25 13:01:50 +0000
commit78d2ea9fcf863db4ba5f7bf92a7a4fecc4da6fc2 (patch)
tree5fb924541b59d8bd0a0bdd59492fde8c0355fab4 /engines/sci
parent4221773f6a5f470cdd1df5b9224c442a458f5047 (diff)
downloadscummvm-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.cpp2
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 : "";
}