From cf454758925568d3183912c97f1ffa28a1718d8f Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 29 Dec 2004 01:58:33 +0000 Subject: Having a better life with the memory... --- Dalos/Dalos.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Dalos/Dalos.cc') diff --git a/Dalos/Dalos.cc b/Dalos/Dalos.cc index bbfdadf..b6e6a75 100644 --- a/Dalos/Dalos.cc +++ b/Dalos/Dalos.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Dalos.cc,v 1.13 2004-12-27 18:46:43 pixel Exp $ */ +/* $Id: Dalos.cc,v 1.14 2004-12-29 01:58:33 pixel Exp $ */ #include #include @@ -113,7 +113,6 @@ static void lua_hook(lua_State * _L, lua_Debug * ar) { void start_lua() { Lua * L = new threaded_Lua(); - Buffer built; bool use_builtin_cdtool = false; int i; @@ -145,10 +144,9 @@ void start_lua() { use_builtin_cdtool = true; } - if (use_builtin_cdtool) { - for (i = 0; i < cd_tool_lua_size; i++) { - built.writeU8(cd_tool_lua[i]); - } + if (use_builtin_cdtool) { + Buffer built; + built.write(cd_tool_lua, cd_tool_lua_size); try { L->load(&built); } -- cgit v1.2.3