From c036c8d234c64f487feccc98845c5e392efd00a1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 3 Apr 2009 11:24:03 +0200 Subject: [PATCH] luaa: pop pushed value Signed-off-by: Julien Danjou --- luaa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/luaa.c b/luaa.c index df264324..10f66b07 100644 --- a/luaa.c +++ b/luaa.c @@ -599,14 +599,16 @@ luaA_isloop(lua_State *L, int idx) /* elems is an elements array that we will fill with all array we * encounter while browsing the tables */ void_array_t elems; - bool ret = false; void_array_init(&elems); /* push table on top */ lua_pushvalue(L, idx); - ret = luaA_isloop_check(L, &elems); + bool ret = luaA_isloop_check(L, &elems); + + /* remove pushed table */ + lua_pop(L, 1); void_array_wipe(&elems);