From 41e470cdb72abdfd9a62f9240ae7e0c31b506a8c Mon Sep 17 00:00:00 2001 From: Lauri Aarnio Date: Thu, 25 Sep 2008 10:46:31 +0300 Subject: Bugfix: Clean lua stack at read_string_variable_from_lua() - my bug, my fix.. --- luaif/luaif.c | 1 + 1 file changed, 1 insertion(+) (limited to 'luaif') diff --git a/luaif/luaif.c b/luaif/luaif.c index a4cfc16..5d60b9a 100644 --- a/luaif/luaif.c +++ b/luaif/luaif.c @@ -118,6 +118,7 @@ static char *read_string_variable_from_lua( if (result) { result = strdup(result); } + lua_pop(luaif->lua, 1); SB_LOG(SB_LOGLEVEL_DEBUG, "Lua variable %s = '%s', gettop=%d", name, (result ? result : ""), -- cgit v1.2.3