From 78d2ea9fcf863db4ba5f7bf92a7a4fecc4da6fc2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 25 Sep 2009 13:01:50 +0000 Subject: SCI: Fix a memory leak svn-id: r44357 --- engines/sci/engine/kmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci') 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 : ""; } -- cgit v1.2.3