From 316c6976e45096e74d80e58e8efb46227a2b6afa Mon Sep 17 00:00:00 2001 From: Timidger Date: Sun, 29 Oct 2017 14:54:55 -0700 Subject: [PATCH] Added pop after loading lua library --- src/lua.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lua.rs b/src/lua.rs index 53a0b4b..18c0ca7 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -563,6 +563,7 @@ impl Lua { /// the guarantees of rlua. pub unsafe fn load_debug(&self) { ffi::luaL_requiref(self.state, cstr!("debug"), ffi::luaopen_debug, 1); + ffi::lua_pop(self.state, 1); } /// Loads a chunk of Lua code and returns it as a function.